/*
 * Sistema Gestor de Proyectos, Version Alpha 1.01.22, Sistema Modular para la Gestión de Proyectos
 * Copyright (C) 2011 Marco Antonio Ramírez Sánchez
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package TBU;

import Clases_auxiliares.conexion;
import Clases_auxiliares.encriptacion_md5;
import Clases_auxiliares.obtener_ubicacion;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.*;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.UnknownHostException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.Timer;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.DefaultTableModel;
import jxl.Workbook;
import jxl.format.UnderlineStyle;
import jxl.write.*;
import jxl.write.Number;

public class Sistema_telefonica extends javax.swing.JFrame {

    private encriptacion_md5 emd5;
    private conexion con, cont1, cont2;
    private obtener_ubicacion ou;
    private ResultSet rs, rst1, rst2;
    private String sql = "", sqli = "", sqlt1 = "", sqlt2 = "";
    private Calendar cal;
    private Date fecha;
    private int auxi = 0, cm, cv = 0, ct, ct2, tu, ar;
    private boolean c2_12, taimer, taimer2, t2 = false;
    private int per = 0, pro_pla = 0, pro_ing = 0, pro_idp = 0;
    private String macro = "", ts, version = "1.01.22", busqueda = "";
    private DefaultTableModel modelo, modelo2;
    private javax.swing.Timer timer2;
    private java.util.Timer timer;

    /**
     * Funcion que inicializa los componentes
     */
    public Sistema_telefonica() throws ClassNotFoundException {
        try {
            initComponents();
            jButton3.setVisible(false);
            emd5 = new encriptacion_md5();
            con = new conexion();
            con.establecer_conexion();
            cont1 = new conexion();
            cont1.establecer_conexion();
            cont2 = new conexion();
            cont2.establecer_conexion();
            ou = new obtener_ubicacion();
            cal = Calendar.getInstance();
            c2_12 = true;
            taimer = true;
            ajustar_resolucion(0, 0);
            getContentPane().setBackground(Color.white);
            cargar_crear_macro();
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "No se ha podido establecer la conexion con la base de datos, verifique en el manual si cumple con todos los requisitos", "Error de Conexion", JOptionPane.ERROR_MESSAGE);
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            System.exit(0);
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        tareas = new javax.swing.JFrame();
        jLabel1 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jComboBox54 = new javax.swing.JComboBox();
        jLabel24 = new javax.swing.JLabel();
        jComboBox55 = new javax.swing.JComboBox();
        jLabel25 = new javax.swing.JLabel();
        jScrollPane17 = new javax.swing.JScrollPane();
        jTextPane12 = new javax.swing.JTextPane();
        jLabel26 = new javax.swing.JLabel();
        jScrollPane20 = new javax.swing.JScrollPane();
        jTextPane13 = new javax.swing.JTextPane();
        jLabel27 = new javax.swing.JLabel();
        jComboBox56 = new javax.swing.JComboBox();
        jComboBox57 = new javax.swing.JComboBox();
        jComboBox58 = new javax.swing.JComboBox();
        jLabel28 = new javax.swing.JLabel();
        jButton12 = new javax.swing.JButton();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jScrollPane21 = new javax.swing.JScrollPane();
        jTextPane14 = new javax.swing.JTextPane();
        jLabel2 = new javax.swing.JLabel();
        jComboBox63 = new javax.swing.JComboBox();
        jLabel69 = new javax.swing.JLabel();
        jComboBox64 = new javax.swing.JComboBox();
        ventanaPrincipal = new javax.swing.JFrame();
        jLabel35 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel10 = new javax.swing.JPanel();
        jScrollPane16 = new javax.swing.JScrollPane();
        jPanel11 = new javax.swing.JPanel();
        jComboBox12 = new javax.swing.JComboBox();
        jComboBox11 = new javax.swing.JComboBox();
        jComboBox3 = new javax.swing.JComboBox();
        jComboBox10 = new javax.swing.JComboBox();
        jLabel13 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jComboBox7 = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jComboBox8 = new javax.swing.JComboBox();
        jComboBox5 = new javax.swing.JComboBox();
        jComboBox9 = new javax.swing.JComboBox();
        jLabel8 = new javax.swing.JLabel();
        jComboBox6 = new javax.swing.JComboBox();
        jComboBox13 = new javax.swing.JComboBox();
        jComboBox2 = new javax.swing.JComboBox();
        jComboBox1 = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextPane1 = new javax.swing.JTextPane();
        jButton30 = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        jButton8 = new javax.swing.JButton();
        jComboBox4 = new javax.swing.JComboBox();
        jPanel7 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jPanel3 = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jComboBox17 = new javax.swing.JComboBox();
        jLabel16 = new javax.swing.JLabel();
        jComboBox18 = new javax.swing.JComboBox();
        jLabel32 = new javax.swing.JLabel();
        jComboBox19 = new javax.swing.JComboBox();
        jLabel42 = new javax.swing.JLabel();
        jComboBox20 = new javax.swing.JComboBox();
        jLabel43 = new javax.swing.JLabel();
        jComboBox21 = new javax.swing.JComboBox();
        jLabel44 = new javax.swing.JLabel();
        jComboBox22 = new javax.swing.JComboBox();
        jLabel45 = new javax.swing.JLabel();
        jComboBox23 = new javax.swing.JComboBox();
        jLabel46 = new javax.swing.JLabel();
        jComboBox24 = new javax.swing.JComboBox();
        jLabel47 = new javax.swing.JLabel();
        jLabel48 = new javax.swing.JLabel();
        jLabel49 = new javax.swing.JLabel();
        jComboBox25 = new javax.swing.JComboBox();
        jLabel50 = new javax.swing.JLabel();
        jComboBox26 = new javax.swing.JComboBox();
        jLabel51 = new javax.swing.JLabel();
        jComboBox27 = new javax.swing.JComboBox();
        jLabel52 = new javax.swing.JLabel();
        jComboBox28 = new javax.swing.JComboBox();
        jLabel53 = new javax.swing.JLabel();
        jComboBox29 = new javax.swing.JComboBox();
        jLabel54 = new javax.swing.JLabel();
        jComboBox30 = new javax.swing.JComboBox();
        jLabel55 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTextPane4 = new javax.swing.JTextPane();
        jLabel56 = new javax.swing.JLabel();
        jComboBox31 = new javax.swing.JComboBox();
        jButton5 = new javax.swing.JButton();
        jLabel17 = new javax.swing.JLabel();
        jComboBox32 = new javax.swing.JComboBox();
        jLabel18 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jComboBox60 = new javax.swing.JComboBox();
        jScrollPane10 = new javax.swing.JScrollPane();
        jTextPane7 = new javax.swing.JTextPane();
        jScrollPane25 = new javax.swing.JScrollPane();
        jTextPane16 = new javax.swing.JTextPane();
        jTextField8 = new javax.swing.JTextField();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jPanel12 = new javax.swing.JPanel();
        jScrollPane22 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jPanel8 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jPanel4 = new javax.swing.JPanel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jComboBox33 = new javax.swing.JComboBox();
        jLabel22 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jScrollPane9 = new javax.swing.JScrollPane();
        jTextPane8 = new javax.swing.JTextPane();
        jLabel23 = new javax.swing.JLabel();
        jLabel62 = new javax.swing.JLabel();
        jScrollPane12 = new javax.swing.JScrollPane();
        jTextPane9 = new javax.swing.JTextPane();
        jLabel63 = new javax.swing.JLabel();
        jTextField4 = new javax.swing.JTextField();
        jLabel65 = new javax.swing.JLabel();
        jComboBox34 = new javax.swing.JComboBox();
        jLabel66 = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        jLabel68 = new javax.swing.JLabel();
        jLabel70 = new javax.swing.JLabel();
        jLabel72 = new javax.swing.JLabel();
        jLabel73 = new javax.swing.JLabel();
        jLabel74 = new javax.swing.JLabel();
        jLabel75 = new javax.swing.JLabel();
        jLabel76 = new javax.swing.JLabel();
        jLabel77 = new javax.swing.JLabel();
        jLabel78 = new javax.swing.JLabel();
        jLabel79 = new javax.swing.JLabel();
        jLabel80 = new javax.swing.JLabel();
        jComboBox41 = new javax.swing.JComboBox();
        jLabel81 = new javax.swing.JLabel();
        jComboBox42 = new javax.swing.JComboBox();
        jLabel82 = new javax.swing.JLabel();
        jScrollPane13 = new javax.swing.JScrollPane();
        jTextPane10 = new javax.swing.JTextPane();
        jComboBox43 = new javax.swing.JComboBox();
        jLabel71 = new javax.swing.JLabel();
        jLabel84 = new javax.swing.JLabel();
        jComboBox44 = new javax.swing.JComboBox();
        jButton6 = new javax.swing.JButton();
        jLabel33 = new javax.swing.JLabel();
        jComboBox61 = new javax.swing.JComboBox();
        jScrollPane26 = new javax.swing.JScrollPane();
        jTextPane17 = new javax.swing.JTextPane();
        jTextField9 = new javax.swing.JTextField();
        jComboBox66 = new javax.swing.JComboBox();
        jComboBox67 = new javax.swing.JComboBox();
        jComboBox68 = new javax.swing.JComboBox();
        jTextField14 = new javax.swing.JTextField();
        jComboBox69 = new javax.swing.JComboBox();
        jComboBox70 = new javax.swing.JComboBox();
        jComboBox71 = new javax.swing.JComboBox();
        jTextField15 = new javax.swing.JTextField();
        jComboBox72 = new javax.swing.JComboBox();
        jComboBox73 = new javax.swing.JComboBox();
        jComboBox74 = new javax.swing.JComboBox();
        jTextField16 = new javax.swing.JTextField();
        jComboBox75 = new javax.swing.JComboBox();
        jComboBox76 = new javax.swing.JComboBox();
        jComboBox77 = new javax.swing.JComboBox();
        jTextField17 = new javax.swing.JTextField();
        jComboBox78 = new javax.swing.JComboBox();
        jComboBox79 = new javax.swing.JComboBox();
        jComboBox80 = new javax.swing.JComboBox();
        jTextField18 = new javax.swing.JTextField();
        jComboBox81 = new javax.swing.JComboBox();
        jComboBox82 = new javax.swing.JComboBox();
        jComboBox83 = new javax.swing.JComboBox();
        jTextField19 = new javax.swing.JTextField();
        jComboBox84 = new javax.swing.JComboBox();
        jComboBox85 = new javax.swing.JComboBox();
        jComboBox86 = new javax.swing.JComboBox();
        jTextField20 = new javax.swing.JTextField();
        jPanel9 = new javax.swing.JPanel();
        jScrollPane15 = new javax.swing.JScrollPane();
        jPanel5 = new javax.swing.JPanel();
        jLabel85 = new javax.swing.JLabel();
        jLabel86 = new javax.swing.JLabel();
        jLabel87 = new javax.swing.JLabel();
        jLabel88 = new javax.swing.JLabel();
        jComboBox45 = new javax.swing.JComboBox();
        jComboBox46 = new javax.swing.JComboBox();
        jComboBox47 = new javax.swing.JComboBox();
        jLabel89 = new javax.swing.JLabel();
        jComboBox48 = new javax.swing.JComboBox();
        jComboBox49 = new javax.swing.JComboBox();
        jComboBox50 = new javax.swing.JComboBox();
        jLabel90 = new javax.swing.JLabel();
        jComboBox51 = new javax.swing.JComboBox();
        jLabel91 = new javax.swing.JLabel();
        jLabel92 = new javax.swing.JLabel();
        jLabel93 = new javax.swing.JLabel();
        jComboBox52 = new javax.swing.JComboBox();
        jLabel94 = new javax.swing.JLabel();
        jScrollPane14 = new javax.swing.JScrollPane();
        jTextPane11 = new javax.swing.JTextPane();
        jLabel95 = new javax.swing.JLabel();
        jComboBox53 = new javax.swing.JComboBox();
        jButton7 = new javax.swing.JButton();
        jLabel96 = new javax.swing.JLabel();
        jLabel64 = new javax.swing.JLabel();
        jComboBox62 = new javax.swing.JComboBox();
        jScrollPane27 = new javax.swing.JScrollPane();
        jTextPane18 = new javax.swing.JTextPane();
        jTextField10 = new javax.swing.JTextField();
        jPanel14 = new javax.swing.JPanel();
        jScrollPane18 = new javax.swing.JScrollPane();
        jPanel15 = new javax.swing.JPanel();
        jLabel37 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        jScrollPane28 = new javax.swing.JScrollPane();
        jTextPane19 = new javax.swing.JTextPane();
        jScrollPane29 = new javax.swing.JScrollPane();
        jTextPane20 = new javax.swing.JTextPane();
        jTextField11 = new javax.swing.JTextField();
        jPanel16 = new javax.swing.JPanel();
        jScrollPane19 = new javax.swing.JScrollPane();
        jPanel17 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jButton4 = new javax.swing.JButton();
        jComboBox16 = new javax.swing.JComboBox();
        jComboBox15 = new javax.swing.JComboBox();
        jComboBox65 = new javax.swing.JComboBox();
        jPanel18 = new javax.swing.JPanel();
        jScrollPane30 = new javax.swing.JScrollPane();
        jPanel19 = new javax.swing.JPanel();
        jLabel40 = new javax.swing.JLabel();
        jComboBox35 = new javax.swing.JComboBox();
        jComboBox36 = new javax.swing.JComboBox();
        jComboBox37 = new javax.swing.JComboBox();
        jComboBox38 = new javax.swing.JComboBox();
        jComboBox39 = new javax.swing.JComboBox();
        jComboBox40 = new javax.swing.JComboBox();
        jLabel41 = new javax.swing.JLabel();
        jLabel83 = new javax.swing.JLabel();
        jLabel97 = new javax.swing.JLabel();
        jComboBox59 = new javax.swing.JComboBox();
        jComboBox87 = new javax.swing.JComboBox();
        jLabel120 = new javax.swing.JLabel();
        jComboBox88 = new javax.swing.JComboBox();
        jComboBox89 = new javax.swing.JComboBox();
        jComboBox90 = new javax.swing.JComboBox();
        jLabel121 = new javax.swing.JLabel();
        jComboBox91 = new javax.swing.JComboBox();
        jScrollPane31 = new javax.swing.JScrollPane();
        jTextPane2 = new javax.swing.JTextPane();
        jComboBox92 = new javax.swing.JComboBox();
        jLabel122 = new javax.swing.JLabel();
        jComboBox93 = new javax.swing.JComboBox();
        jLabel123 = new javax.swing.JLabel();
        jScrollPane33 = new javax.swing.JScrollPane();
        jTextPane22 = new javax.swing.JTextPane();
        jLabel124 = new javax.swing.JLabel();
        jComboBox94 = new javax.swing.JComboBox();
        jComboBox95 = new javax.swing.JComboBox();
        jLabel126 = new javax.swing.JLabel();
        jComboBox96 = new javax.swing.JComboBox();
        jComboBox97 = new javax.swing.JComboBox();
        jLabel127 = new javax.swing.JLabel();
        jLabel128 = new javax.swing.JLabel();
        jComboBox98 = new javax.swing.JComboBox();
        jLabel129 = new javax.swing.JLabel();
        jScrollPane34 = new javax.swing.JScrollPane();
        jTextPane23 = new javax.swing.JTextPane();
        jLabel130 = new javax.swing.JLabel();
        jComboBox99 = new javax.swing.JComboBox();
        jLabel131 = new javax.swing.JLabel();
        jLabel132 = new javax.swing.JLabel();
        jComboBox100 = new javax.swing.JComboBox();
        jComboBox101 = new javax.swing.JComboBox();
        jLabel133 = new javax.swing.JLabel();
        jComboBox102 = new javax.swing.JComboBox();
        jLabel134 = new javax.swing.JLabel();
        jComboBox103 = new javax.swing.JComboBox();
        jLabel135 = new javax.swing.JLabel();
        jLabel136 = new javax.swing.JLabel();
        jComboBox104 = new javax.swing.JComboBox();
        jLabel137 = new javax.swing.JLabel();
        jComboBox105 = new javax.swing.JComboBox();
        jLabel138 = new javax.swing.JLabel();
        jComboBox106 = new javax.swing.JComboBox();
        jLabel139 = new javax.swing.JLabel();
        jLabel140 = new javax.swing.JLabel();
        jComboBox107 = new javax.swing.JComboBox();
        jLabel141 = new javax.swing.JLabel();
        jComboBox108 = new javax.swing.JComboBox();
        jLabel142 = new javax.swing.JLabel();
        jLabel143 = new javax.swing.JLabel();
        jComboBox109 = new javax.swing.JComboBox();
        jLabel144 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator3 = new javax.swing.JSeparator();
        jComboBox110 = new javax.swing.JComboBox();
        jComboBox111 = new javax.swing.JComboBox();
        jComboBox112 = new javax.swing.JComboBox();
        jTextField22 = new javax.swing.JTextField();
        jComboBox113 = new javax.swing.JComboBox();
        jScrollPane35 = new javax.swing.JScrollPane();
        jTextPane24 = new javax.swing.JTextPane();
        jComboBox114 = new javax.swing.JComboBox();
        jLabel145 = new javax.swing.JLabel();
        jComboBox115 = new javax.swing.JComboBox();
        jComboBox116 = new javax.swing.JComboBox();
        jTextField23 = new javax.swing.JTextField();
        jLabel146 = new javax.swing.JLabel();
        jLabel147 = new javax.swing.JLabel();
        jComboBox117 = new javax.swing.JComboBox();
        jLabel150 = new javax.swing.JLabel();
        jLabel151 = new javax.swing.JLabel();
        jComboBox118 = new javax.swing.JComboBox();
        jLabel152 = new javax.swing.JLabel();
        jComboBox119 = new javax.swing.JComboBox();
        jTextField24 = new javax.swing.JTextField();
        jComboBox120 = new javax.swing.JComboBox();
        jLabel153 = new javax.swing.JLabel();
        jComboBox121 = new javax.swing.JComboBox();
        jLabel154 = new javax.swing.JLabel();
        jScrollPane37 = new javax.swing.JScrollPane();
        jTextPane26 = new javax.swing.JTextPane();
        jLabel156 = new javax.swing.JLabel();
        jLabel157 = new javax.swing.JLabel();
        jLabel158 = new javax.swing.JLabel();
        jComboBox122 = new javax.swing.JComboBox();
        jLabel159 = new javax.swing.JLabel();
        jTextField26 = new javax.swing.JTextField();
        jComboBox123 = new javax.swing.JComboBox();
        jComboBox124 = new javax.swing.JComboBox();
        jComboBox125 = new javax.swing.JComboBox();
        jTextField27 = new javax.swing.JTextField();
        jComboBox126 = new javax.swing.JComboBox();
        jComboBox127 = new javax.swing.JComboBox();
        jComboBox128 = new javax.swing.JComboBox();
        jComboBox129 = new javax.swing.JComboBox();
        jTextField28 = new javax.swing.JTextField();
        jComboBox130 = new javax.swing.JComboBox();
        jScrollPane38 = new javax.swing.JScrollPane();
        jTextPane27 = new javax.swing.JTextPane();
        jLabel160 = new javax.swing.JLabel();
        jLabel161 = new javax.swing.JLabel();
        jLabel162 = new javax.swing.JLabel();
        jLabel163 = new javax.swing.JLabel();
        jLabel164 = new javax.swing.JLabel();
        jLabel165 = new javax.swing.JLabel();
        jLabel166 = new javax.swing.JLabel();
        jTextField29 = new javax.swing.JTextField();
        jComboBox131 = new javax.swing.JComboBox();
        jComboBox132 = new javax.swing.JComboBox();
        jTextField30 = new javax.swing.JTextField();
        jComboBox133 = new javax.swing.JComboBox();
        jComboBox134 = new javax.swing.JComboBox();
        jComboBox135 = new javax.swing.JComboBox();
        jTextField31 = new javax.swing.JTextField();
        jComboBox136 = new javax.swing.JComboBox();
        jComboBox137 = new javax.swing.JComboBox();
        jLabel167 = new javax.swing.JLabel();
        jLabel168 = new javax.swing.JLabel();
        jLabel169 = new javax.swing.JLabel();
        jSeparator5 = new javax.swing.JSeparator();
        jLabel170 = new javax.swing.JLabel();
        jComboBox138 = new javax.swing.JComboBox();
        jComboBox139 = new javax.swing.JComboBox();
        jLabel171 = new javax.swing.JLabel();
        jComboBox140 = new javax.swing.JComboBox();
        jLabel174 = new javax.swing.JLabel();
        jScrollPane39 = new javax.swing.JScrollPane();
        jTextPane28 = new javax.swing.JTextPane();
        jLabel175 = new javax.swing.JLabel();
        jLabel176 = new javax.swing.JLabel();
        jLabel177 = new javax.swing.JLabel();
        jComboBox141 = new javax.swing.JComboBox();
        jComboBox142 = new javax.swing.JComboBox();
        jComboBox143 = new javax.swing.JComboBox();
        jLabel179 = new javax.swing.JLabel();
        jLabel180 = new javax.swing.JLabel();
        jLabel181 = new javax.swing.JLabel();
        jComboBox145 = new javax.swing.JComboBox();
        jLabel182 = new javax.swing.JLabel();
        jComboBox146 = new javax.swing.JComboBox();
        jComboBox147 = new javax.swing.JComboBox();
        jComboBox148 = new javax.swing.JComboBox();
        jLabel183 = new javax.swing.JLabel();
        jComboBox149 = new javax.swing.JComboBox();
        jLabel184 = new javax.swing.JLabel();
        jComboBox150 = new javax.swing.JComboBox();
        jLabel178 = new javax.swing.JLabel();
        jComboBox151 = new javax.swing.JComboBox();
        jButton14 = new javax.swing.JButton();
        jButton15 = new javax.swing.JButton();
        jScrollPane11 = new javax.swing.JScrollPane();
        jPanel6 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        menuVentanaPrincipal = new javax.swing.JMenuBar();
        listaProyectos = new javax.swing.JMenu();
        recargarLista = new javax.swing.JMenuItem();
        exportarExcel = new javax.swing.JMenu();
        hojaCalculo = new javax.swing.JMenuItem();
        sesion = new javax.swing.JMenu();
        tareasAsignadas = new javax.swing.JMenuItem();
        tareasCreadas = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        reportarError = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        cerrarSesion = new javax.swing.JMenuItem();
        salirSistema = new javax.swing.JMenuItem();
        ayuda = new javax.swing.JMenu();
        ajustarResolucion = new javax.swing.JMenu();
        r800x600 = new javax.swing.JRadioButtonMenuItem();
        r1024x768 = new javax.swing.JRadioButtonMenuItem();
        r1280x1024 = new javax.swing.JRadioButtonMenuItem();
        sistemaCreditos = new javax.swing.JMenuItem();
        licencia = new javax.swing.JMenuItem();
        manual = new javax.swing.JMenuItem();
        presupuesto = new javax.swing.JFrame();
        jLabel99 = new javax.swing.JLabel();
        jTextField3 = new javax.swing.JTextField();
        jLabel100 = new javax.swing.JLabel();
        jTextField5 = new javax.swing.JTextField();
        jLabel101 = new javax.swing.JLabel();
        jTextField6 = new javax.swing.JTextField();
        jCheckBox2 = new javax.swing.JCheckBox();
        jCheckBox3 = new javax.swing.JCheckBox();
        jCheckBox4 = new javax.swing.JCheckBox();
        jLabel102 = new javax.swing.JLabel();
        jTextField7 = new javax.swing.JTextField();
        jButton13 = new javax.swing.JButton();
        jLabel98 = new javax.swing.JLabel();
        jScrollPane23 = new javax.swing.JScrollPane();
        jTextPane15 = new javax.swing.JTextPane();
        jLabel103 = new javax.swing.JLabel();
        jLabel104 = new javax.swing.JLabel();
        jTextField12 = new javax.swing.JTextField();
        reporteErrores = new javax.swing.JFrame();
        jLabel57 = new javax.swing.JLabel();
        jLabel58 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        jScrollPane8 = new javax.swing.JScrollPane();
        jTextPane6 = new javax.swing.JTextPane();
        jLabel61 = new javax.swing.JLabel();
        jButton37 = new javax.swing.JButton();
        jScrollPane7 = new javax.swing.JScrollPane();
        jTextPane5 = new javax.swing.JTextPane();
        jComboBox14 = new javax.swing.JComboBox();
        jTextField13 = new javax.swing.JTextField();
        creditos = new javax.swing.JFrame();
        jScrollPane24 = new javax.swing.JScrollPane();
        jPanel13 = new javax.swing.JPanel();
        jLabel105 = new javax.swing.JLabel();
        jLabel106 = new javax.swing.JLabel();
        jLabel107 = new javax.swing.JLabel();
        jLabel108 = new javax.swing.JLabel();
        jLabel109 = new javax.swing.JLabel();
        jLabel110 = new javax.swing.JLabel();
        jLabel111 = new javax.swing.JLabel();
        jLabel112 = new javax.swing.JLabel();
        jLabel113 = new javax.swing.JLabel();
        jLabel114 = new javax.swing.JLabel();
        jLabel115 = new javax.swing.JLabel();
        jLabel116 = new javax.swing.JLabel();
        jLabel117 = new javax.swing.JLabel();
        jLabel118 = new javax.swing.JLabel();
        jLabel119 = new javax.swing.JLabel();
        cargandoDatos = new javax.swing.JDialog();
        jLabel34 = new javax.swing.JLabel();
        jProgressBar1 = new javax.swing.JProgressBar();
        menuTablaPrincipal = new javax.swing.JPopupMenu();
        jMenu5 = new javax.swing.JMenu();
        jMenuItem29 = new javax.swing.JMenuItem();
        jMenuItem10 = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        jMenuItem13 = new javax.swing.JMenuItem();
        jMenuItem28 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenu7 = new javax.swing.JMenu();
        jMenuItem16 = new javax.swing.JMenuItem();
        jMenuItem20 = new javax.swing.JMenuItem();
        jMenuItem21 = new javax.swing.JMenuItem();
        jMenuItem23 = new javax.swing.JMenuItem();
        jMenu8 = new javax.swing.JMenu();
        jMenuItem24 = new javax.swing.JMenuItem();
        jMenuItem25 = new javax.swing.JMenuItem();
        menuTablaTareas = new javax.swing.JPopupMenu();
        jMenuItem30 = new javax.swing.JMenuItem();
        jMenuItem31 = new javax.swing.JMenuItem();
        grupoAjusteResolucion = new javax.swing.ButtonGroup();
        jFileChooser1 = new javax.swing.JFileChooser();
        jInternalFrame1 = new javax.swing.JInternalFrame();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jTextField1 = new javax.swing.JTextField();
        jPasswordField1 = new javax.swing.JPasswordField();
        jButton3 = new javax.swing.JButton();
        jCheckBox1 = new javax.swing.JCheckBox();

        tareas.setTitle("Nueva Tarea");
        tareas.setBounds(new java.awt.Rectangle(415, 297, 450, 430));
        tareas.setResizable(false);

        jLabel1.setText("*Proyecto:");

        jLabel4.setText("*Tarea:");

        jComboBox54.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox54.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tareas" }));
        jComboBox54.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox54ItemStateChanged(evt);
            }
        });

        jLabel24.setText("*Descripcion:");

        jComboBox55.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox55.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));
        jComboBox55.setEnabled(false);

        jLabel25.setText("*Asignar a:");

        jTextPane12.setEditable(false);
        jTextPane12.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jScrollPane17.setViewportView(jTextPane12);

        jLabel26.setText("*Observacion:");

        jTextPane13.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane13.setText("Ingrese observacion");
        jTextPane13.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane13FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane13FocusLost(evt);
            }
        });
        jScrollPane20.setViewportView(jTextPane13);

        jLabel27.setText("*Fecha requerida:");

        jComboBox56.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox56.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox56.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox56ItemStateChanged(evt);
            }
        });

        jComboBox57.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox57.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox57.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox57ItemStateChanged(evt);
            }
        });

        jComboBox58.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox58.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox58.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox58ItemStateChanged(evt);
            }
        });

        jLabel28.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel28.setText("Dia de la semana");

        jButton12.setText("Crear");
        jButton12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton12MouseClicked(evt);
            }
        });
        jButton12.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton12KeyPressed(evt);
            }
        });

        jLabel29.setText("*Personal:");

        jLabel30.setForeground(new java.awt.Color(0, 102, 0));
        jLabel30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N
        jLabel30.setText("responsable");

        jTextPane14.setEditable(false);
        jTextPane14.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane14.setForeground(new java.awt.Color(0, 102, 0));
        jScrollPane21.setViewportView(jTextPane14);

        jLabel2.setText("Depende de la Tarea:");

        jComboBox63.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox63.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tarea" }));
        jComboBox63.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox63ItemStateChanged(evt);
            }
        });

        jLabel69.setText("Estatus:");

        jComboBox64.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox64.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Estatus" }));

        javax.swing.GroupLayout tareasLayout = new javax.swing.GroupLayout(tareas.getContentPane());
        tareas.getContentPane().setLayout(tareasLayout);
        tareasLayout.setHorizontalGroup(
            tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tareasLayout.createSequentialGroup()
                .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tareasLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel69)
                            .addComponent(jLabel2)
                            .addComponent(jLabel26)
                            .addComponent(jLabel29)
                            .addComponent(jLabel27)
                            .addComponent(jLabel4)
                            .addComponent(jLabel1)
                            .addComponent(jLabel25)
                            .addComponent(jLabel24))
                        .addGap(2, 2, 2)
                        .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox64, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox54, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox63, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(tareasLayout.createSequentialGroup()
                                .addComponent(jComboBox56, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox58, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel28))
                            .addComponent(jScrollPane21, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel30)
                            .addComponent(jScrollPane20, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox55, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(tareasLayout.createSequentialGroup()
                        .addGap(180, 180, 180)
                        .addComponent(jButton12)))
                .addContainerGap(82, Short.MAX_VALUE))
        );
        tareasLayout.setVerticalGroup(
            tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tareasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(jLabel29))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane21, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jComboBox54, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel24))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox55, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel25))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tareasLayout.createSequentialGroup()
                        .addComponent(jScrollPane20, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox56, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox58, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel28)
                            .addComponent(jLabel27))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox63, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(tareasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox64, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel69)))
                    .addComponent(jLabel26))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)
                .addComponent(jButton12)
                .addContainerGap())
        );

        ventanaPrincipal.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        ventanaPrincipal.setTitle("Sistema Gestor de Proyectos - Proyectos Activos");
        ventanaPrincipal.setBounds(new java.awt.Rectangle(0, 0, 1280, 980));
        ventanaPrincipal.setResizable(false);
        ventanaPrincipal.addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                ventanaPrincipalWindowClosing(evt);
            }
        });
        ventanaPrincipal.getContentPane().setBackground(Color.white);

        jLabel35.setForeground(new java.awt.Color(0, 51, 102));
        jLabel35.setText("Lista de Proyectos Existentes");

        jPanel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jPanel11.setBackground(new java.awt.Color(255, 255, 255));

        jComboBox12.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox12.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tecnologia" }));
        jComboBox12.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox12ItemStateChanged(evt);
            }
        });

        jComboBox11.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox11.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Region" }));
        jComboBox11.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox11ItemStateChanged(evt);
            }
        });

        jComboBox3.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Region" }));
        jComboBox3.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox3ItemStateChanged(evt);
            }
        });

        jComboBox10.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox10.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox10.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox10ItemStateChanged(evt);
            }
        });

        jLabel13.setText("Codigo:");

        jLabel7.setText("*Nombre:");

        jLabel15.setText("Fecha de Creación:");

        jLabel10.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel10.setText("Dia de la semana");

        jComboBox7.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox7.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox7ItemStateChanged(evt);
            }
        });

        jLabel6.setForeground(new java.awt.Color(0, 51, 102));
        jLabel6.setText("Macroproyecto");

        jComboBox8.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox8.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox8.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox8ItemStateChanged(evt);
            }
        });

        jComboBox5.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox5.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox5ItemStateChanged(evt);
            }
        });

        jComboBox9.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox9.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox9.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox9ItemStateChanged(evt);
            }
        });

        jLabel8.setText("*Fecha Requerida:");

        jComboBox6.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox6.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox6ItemStateChanged(evt);
            }
        });

        jComboBox13.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox13.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CM" }));

        jComboBox2.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tecnologia" }));
        jComboBox2.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox2ItemStateChanged(evt);
            }
        });

        jComboBox1.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tipo de Trabajo" }));

        jTextPane1.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane1.setText("Ingrese la descripcion del macroproyecto");
        jTextPane1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane1FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane1FocusLost(evt);
            }
        });
        jScrollPane1.setViewportView(jTextPane1);

        jButton30.setText("Modificar");
        jButton30.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton30MouseClicked(evt);
            }
        });
        jButton30.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton30KeyPressed(evt);
            }
        });

        jLabel9.setText("Descripcion:");

        jButton8.setText("Crear");
        jButton8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton8MouseClicked(evt);
            }
        });
        jButton8.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton8KeyPressed(evt);
            }
        });

        jComboBox4.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox4.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox4ItemStateChanged(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel13)
                            .addComponent(jLabel7)
                            .addComponent(jLabel15)
                            .addComponent(jLabel9)
                            .addComponent(jLabel8))
                        .addGap(4, 4, 4)
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel10))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(8, 8, 8)
                                .addComponent(jComboBox11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(7, 7, 7)
                                .addComponent(jComboBox12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(7, 7, 7)
                                .addComponent(jComboBox13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGap(117, 117, 117)
                        .addComponent(jButton8)
                        .addGap(32, 32, 32)
                        .addComponent(jButton30))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGap(165, 165, 165)
                        .addComponent(jLabel6)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel6)
                .addGap(16, 16, 16)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(8, 8, 8)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel9)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton8)
                    .addComponent(jButton30))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jScrollPane16.setViewportView(jPanel11);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane16)
                .addContainerGap())
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane16)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Macroproyecto", jPanel10);

        jPanel3.setBackground(new java.awt.Color(255, 255, 255));

        jLabel11.setForeground(new java.awt.Color(0, 51, 102));
        jLabel11.setText("Proyecto");

        jLabel12.setText("*Nombre:");

        jLabel14.setText("*Estacion:");

        jComboBox17.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox17.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Estacion" }));

        jLabel16.setText("Punto de Repeticion:");

        jComboBox18.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox18.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Punto de Repeticion" }));

        jLabel32.setText("*Proveedor:");

        jComboBox19.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox19.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Proveedor" }));
        jComboBox19.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox19ItemStateChanged(evt);
            }
        });

        jLabel42.setText("*Equipo:");

        jComboBox20.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox20.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Equipo" }));

        jLabel43.setText("*Region:");

        jComboBox21.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox21.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Region" }));

        jLabel44.setText("*Año de Compra:");

        jComboBox22.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox22.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));

        jLabel45.setText("*Mes Requerido:");

        jComboBox23.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox23.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox23.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox23ItemStateChanged(evt);
            }
        });

        jLabel46.setText("*Prioridad:");

        jComboBox24.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox24.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Prioridad" }));
        jComboBox24.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox24ItemStateChanged(evt);
            }
        });

        jLabel47.setText("*Creado por:");

        jLabel48.setForeground(new java.awt.Color(0, 102, 0));
        jLabel48.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jLabel49.setText("Radios Gestionables:");

        jComboBox25.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox25.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Radios Gestionables" }));

        jLabel50.setText("Migracion:");

        jComboBox26.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox26.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Migracion", "Si", "No" }));
        jComboBox26.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox26ItemStateChanged(evt);
            }
        });

        jLabel51.setText("Rearreglo:");

        jComboBox27.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox27.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Rearreglo", "Si", "No" }));
        jComboBox27.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox27ItemStateChanged(evt);
            }
        });

        jLabel52.setText("*Avance de Planificacion:");

        jComboBox28.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox28.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "%", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100" }));
        jComboBox28.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox28ItemStateChanged(evt);
            }
        });

        jLabel53.setText("Area (de Retraso):");

        jComboBox29.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox29.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Area" }));

        jLabel54.setText("Tipos de MCI:");

        jComboBox30.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox30.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tipos de MCI" }));

        jLabel55.setText("Descripcion:");

        jTextPane4.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane4.setText("Ingrese la descripcion del proyecto");
        jTextPane4.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane4FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane4FocusLost(evt);
            }
        });
        jScrollPane6.setViewportView(jTextPane4);

        jLabel56.setText("Planificacion:");

        jComboBox31.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox31.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Px", "1" }));
        jComboBox31.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox31ItemStateChanged(evt);
            }
        });

        jButton5.setText("Crear");
        jButton5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton5MouseClicked(evt);
            }
        });
        jButton5.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton5KeyPressed(evt);
            }
        });

        jLabel17.setText("*Linea Base:");

        jComboBox32.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox32.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Linea Base", "Si", "No" }));

        jLabel18.setText("Macroproyecto:");

        jLabel31.setText("*Asignado a:");

        jComboBox60.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox60.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jTextPane7.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane7.setText("Ingrese un nombre");
        jTextPane7.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane7FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane7FocusLost(evt);
            }
        });
        jScrollPane10.setViewportView(jTextPane7);

        jTextPane16.setEditable(false);
        jTextPane16.setForeground(new java.awt.Color(102, 0, 0));
        jTextPane16.setText("No hay ningun macroproyecto abierto");
        jScrollPane25.setViewportView(jTextPane16);

        jTextField8.setEditable(false);
        jTextField8.setForeground(new java.awt.Color(0, 102, 0));
        jTextField8.setText("Ingrese PEP");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabel18))
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addContainerGap()
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel45)
                                    .addComponent(jLabel44)
                                    .addComponent(jLabel47)
                                    .addComponent(jLabel46)
                                    .addComponent(jLabel16)
                                    .addComponent(jLabel12)
                                    .addComponent(jLabel14)
                                    .addComponent(jLabel42)
                                    .addComponent(jLabel43)
                                    .addComponent(jLabel32)))
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addContainerGap()
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel56)
                                    .addComponent(jLabel17)
                                    .addComponent(jLabel49)
                                    .addComponent(jLabel31)
                                    .addComponent(jLabel50)
                                    .addComponent(jLabel51)
                                    .addComponent(jLabel52)
                                    .addComponent(jLabel53)
                                    .addComponent(jLabel54)
                                    .addComponent(jLabel55))))
                        .addGap(6, 6, 6)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jComboBox30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11)
                            .addComponent(jComboBox60, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane25, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(jLabel48)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jComboBox20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(175, 175, 175)
                        .addComponent(jButton5)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel11)
                .addGap(18, 18, 18)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel18)
                    .addComponent(jScrollPane25, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel32))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel42))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel43))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel44))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel45)
                    .addComponent(jComboBox23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel46))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel48)
                        .addComponent(jLabel47))
                    .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(jComboBox60, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel49))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel50))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel51))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel52))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel53))
                .addGap(7, 7, 7)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel54))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel55))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel56))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton5)
                .addGap(62, 62, 62))
        );

        jScrollPane2.setViewportView(jPanel3);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1363, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Proyecto", jPanel7);

        jPanel12.setBackground(new java.awt.Color(255, 255, 255));

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nro de Tarea", "Creado por", "Asignado a", "Area", "Tarea", "Descripcion de la Tarea", "Observacion", "Fecha Requerida", "Fecha de Creacion", "Tarea Dependiente", "Estatus"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane22.setViewportView(jTable2);

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane22, javax.swing.GroupLayout.DEFAULT_SIZE, 2402, Short.MAX_VALUE)
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane22, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 325, Short.MAX_VALUE)
        );

        jScrollPane5.setViewportView(jPanel12);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 1363, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Tareas", jPanel1);

        jPanel4.setBackground(new java.awt.Color(255, 255, 255));

        jLabel20.setForeground(new java.awt.Color(0, 51, 102));
        jLabel20.setText("Ingenieria");

        jLabel21.setText("*Mes Planificado:");

        jComboBox33.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox33.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));

        jLabel22.setText("PEP del Proyecto:");

        jTextField2.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextField2.setText("Ingrese PEP");
        jTextField2.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextField2FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextField2FocusLost(evt);
            }
        });

        jTextPane8.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane8.setText("Ingrese documento de compra");
        jTextPane8.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane8FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane8FocusLost(evt);
            }
        });
        jScrollPane9.setViewportView(jTextPane8);

        jLabel23.setText("Documento de Compra de Equipo:");

        jLabel62.setText("Documento de Compra de Servicio:");

        jTextPane9.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane9.setText("Ingrese documento de compra");
        jTextPane9.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane9FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane9FocusLost(evt);
            }
        });
        jScrollPane12.setViewportView(jTextPane9);

        jLabel63.setText("Numero de Reserva:");

        jTextField4.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextField4.setText("Nº de reserva");
        jTextField4.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextField4FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextField4FocusLost(evt);
            }
        });

        jLabel65.setText("*Area de Ingenieria:");

        jComboBox34.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox34.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Area" }));

        jLabel66.setText("*Creado por:");

        jLabel67.setForeground(new java.awt.Color(0, 102, 0));
        jLabel67.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jLabel68.setText("Semana de Publicacion de Ingenieria:");

        jLabel70.setText("Año de Ejecucion de Ingenieria:");

        jLabel72.setText("Semana Planificada para la Implementacion:");

        jLabel73.setText("Semana Planificada para el ATP:");

        jLabel74.setText("Semana Real de ATP:");

        jLabel75.setText("Semana Real de Gestion:");

        jLabel76.setText("Semana Real de SART:");

        jLabel77.setText("Semana de Puesta en Servicio:");

        jLabel78.setText("Duracion del Proyecto por parte de Ingenieria:");

        jLabel79.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel79.setText("0");
        jLabel79.setToolTipText("Numero de Semanas entre la publicacion y la puesta en servicio");

        jLabel80.setText("*Avance de Ingenieria:");

        jComboBox41.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox41.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "%", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100" }));
        jComboBox41.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox41ItemStateChanged(evt);
            }
        });

        jLabel81.setText("Area (de Retraso):");

        jComboBox42.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox42.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Area" }));

        jLabel82.setText("Observacion:");

        jTextPane10.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane10.setText("Ingrese observacion");
        jTextPane10.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane10FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane10FocusLost(evt);
            }
        });
        jScrollPane13.setViewportView(jTextPane10);

        jComboBox43.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox43.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox43.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox43ItemStateChanged(evt);
            }
        });

        jLabel71.setText("*Proyecto:");

        jLabel84.setText("Ingenieria:");

        jComboBox44.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox44.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ing", "1" }));
        jComboBox44.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox44ItemStateChanged(evt);
            }
        });

        jButton6.setText("Crear");
        jButton6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton6MouseClicked(evt);
            }
        });
        jButton6.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton6KeyPressed(evt);
            }
        });

        jLabel33.setText("*Asignado a:");

        jComboBox61.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox61.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jTextPane17.setEditable(false);
        jTextPane17.setForeground(new java.awt.Color(102, 0, 0));
        jTextPane17.setText("No hay ningun proyecto abierto");
        jScrollPane26.setViewportView(jTextPane17);

        jTextField9.setEditable(false);
        jTextField9.setForeground(new java.awt.Color(0, 102, 0));
        jTextField9.setText("responsable");

        jComboBox66.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox66.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox66.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox66ItemStateChanged(evt);
            }
        });

        jComboBox67.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox67.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox67.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox67ItemStateChanged(evt);
            }
        });

        jComboBox68.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox68.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox68.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox68ItemStateChanged(evt);
            }
        });

        jTextField14.setEditable(false);
        jTextField14.setForeground(new java.awt.Color(0, 102, 0));
        jTextField14.setText("Semana");

        jComboBox69.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox69.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox69.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox69ItemStateChanged(evt);
            }
        });

        jComboBox70.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox70.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox70.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox70ItemStateChanged(evt);
            }
        });

        jComboBox71.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox71.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox71.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox71ItemStateChanged(evt);
            }
        });

        jTextField15.setEditable(false);
        jTextField15.setForeground(new java.awt.Color(0, 102, 0));
        jTextField15.setText("Semana");

        jComboBox72.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox72.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox72.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox72ItemStateChanged(evt);
            }
        });

        jComboBox73.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox73.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox73.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox73ItemStateChanged(evt);
            }
        });

        jComboBox74.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox74.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox74.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox74ItemStateChanged(evt);
            }
        });

        jTextField16.setEditable(false);
        jTextField16.setForeground(new java.awt.Color(0, 102, 0));
        jTextField16.setText("Semana");

        jComboBox75.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox75.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox75.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox75ItemStateChanged(evt);
            }
        });

        jComboBox76.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox76.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox76.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox76ItemStateChanged(evt);
            }
        });

        jComboBox77.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox77.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox77.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox77ItemStateChanged(evt);
            }
        });

        jTextField17.setEditable(false);
        jTextField17.setForeground(new java.awt.Color(0, 102, 0));
        jTextField17.setText("Semana");

        jComboBox78.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox78.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox78.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox78ItemStateChanged(evt);
            }
        });

        jComboBox79.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox79.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox79.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox79ItemStateChanged(evt);
            }
        });

        jComboBox80.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox80.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox80.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox80ItemStateChanged(evt);
            }
        });

        jTextField18.setEditable(false);
        jTextField18.setForeground(new java.awt.Color(0, 102, 0));
        jTextField18.setText("Semana");

        jComboBox81.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox81.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox81.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox81ItemStateChanged(evt);
            }
        });

        jComboBox82.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox82.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox82.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox82ItemStateChanged(evt);
            }
        });

        jComboBox83.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox83.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox83.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox83ItemStateChanged(evt);
            }
        });

        jTextField19.setEditable(false);
        jTextField19.setForeground(new java.awt.Color(0, 102, 0));
        jTextField19.setText("Semana");

        jComboBox84.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox84.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox84.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox84ItemStateChanged(evt);
            }
        });

        jComboBox85.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox85.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox85.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox85ItemStateChanged(evt);
            }
        });

        jComboBox86.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox86.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox86.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox86ItemStateChanged(evt);
            }
        });

        jTextField20.setEditable(false);
        jTextField20.setForeground(new java.awt.Color(0, 102, 0));
        jTextField20.setText("Semana");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel71)
                    .addComponent(jLabel84)
                    .addComponent(jLabel75)
                    .addComponent(jLabel74)
                    .addComponent(jLabel73)
                    .addComponent(jLabel72)
                    .addComponent(jLabel76)
                    .addComponent(jLabel70)
                    .addComponent(jLabel68)
                    .addComponent(jLabel66)
                    .addComponent(jLabel65)
                    .addComponent(jLabel63)
                    .addComponent(jLabel62)
                    .addComponent(jLabel81)
                    .addComponent(jLabel23)
                    .addComponent(jLabel82)
                    .addComponent(jLabel78)
                    .addComponent(jLabel22)
                    .addComponent(jLabel80)
                    .addComponent(jLabel21)
                    .addComponent(jLabel33)
                    .addComponent(jLabel77))
                .addGap(4, 4, 4)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jButton6))
                    .addComponent(jComboBox41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel79)
                    .addComponent(jLabel20)
                    .addComponent(jComboBox33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox44, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox42, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox61, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane26, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jComboBox66, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(7, 7, 7)
                        .addComponent(jComboBox67, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox68, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField14))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel67)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jComboBox69, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox70, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox71, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField15))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jComboBox72, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox73, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox74, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField16))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jComboBox75, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox76, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox77, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField17))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jComboBox78, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox79, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox80, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField18))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jComboBox81, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox82, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox83, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField19))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jComboBox84, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox85, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox86, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField20)))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel20)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jLabel71))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane26, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel21))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel22))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel23))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel63))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel65)))
                    .addComponent(jLabel62))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel66)
                    .addComponent(jLabel67)
                    .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel33)
                    .addComponent(jComboBox61, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel68)
                    .addComponent(jComboBox84, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox85, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox86, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel70)
                    .addComponent(jComboBox43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel72)
                    .addComponent(jComboBox66, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox67, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox68, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel73)
                    .addComponent(jComboBox69, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox70, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox71, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel74)
                    .addComponent(jComboBox72, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox73, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox74, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel75)
                    .addComponent(jComboBox75, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox76, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox77, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel76)
                    .addComponent(jComboBox78, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox79, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox80, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel77)
                    .addComponent(jComboBox81, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox82, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox83, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel78)
                    .addComponent(jLabel79))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel80)
                    .addComponent(jComboBox41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel81)
                    .addComponent(jComboBox42, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel82)
                    .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel84)
                    .addComponent(jComboBox44, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton6)
                .addContainerGap(29, Short.MAX_VALUE))
        );

        jScrollPane3.setViewportView(jPanel4);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 1363, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Ingenieria", jPanel8);

        jPanel5.setBackground(new java.awt.Color(255, 255, 255));

        jLabel85.setForeground(new java.awt.Color(0, 51, 102));
        jLabel85.setText("Implementacion de Proyectos");

        jLabel86.setText("*Creado por:");

        jLabel87.setForeground(new java.awt.Color(0, 102, 0));
        jLabel87.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jLabel88.setText("Fecha Planificada de Puesta en Servicio:");

        jComboBox45.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox45.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox45.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox45ItemStateChanged(evt);
            }
        });

        jComboBox46.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox46.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox46.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox46ItemStateChanged(evt);
            }
        });

        jComboBox47.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox47.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox47.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox47ItemStateChanged(evt);
            }
        });

        jLabel89.setText("Fecha Real de Puesta en Servicio:");

        jComboBox48.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox48.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox48.setEnabled(false);
        jComboBox48.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox48ItemStateChanged(evt);
            }
        });

        jComboBox49.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox49.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox49.setEnabled(false);
        jComboBox49.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox49ItemStateChanged(evt);
            }
        });

        jComboBox50.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox50.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox50.setEnabled(false);
        jComboBox50.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox50ItemStateChanged(evt);
            }
        });

        jLabel90.setText("*Avance de Integracion de Proyectos:");

        jComboBox51.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox51.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "%", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100" }));
        jComboBox51.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox51ItemStateChanged(evt);
            }
        });

        jLabel91.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel91.setText("Dia de la semana");

        jLabel92.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel92.setText("Dia de la semana");

        jLabel93.setText("Area (de Retraso):");

        jComboBox52.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox52.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Area" }));

        jLabel94.setText("Observacion:");

        jTextPane11.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane11.setText("Ingrese observacion");
        jTextPane11.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane11FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane11FocusLost(evt);
            }
        });
        jScrollPane14.setViewportView(jTextPane11);

        jLabel95.setText("Integracion de Proyectos:");

        jComboBox53.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox53.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "IDP", "1" }));
        jComboBox53.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox53ItemStateChanged(evt);
            }
        });

        jButton7.setText("Crear");
        jButton7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton7MouseClicked(evt);
            }
        });
        jButton7.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton7KeyPressed(evt);
            }
        });

        jLabel96.setText("*Proyecto:");

        jLabel64.setText("*Asignado a:");

        jComboBox62.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox62.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jTextPane18.setEditable(false);
        jTextPane18.setForeground(new java.awt.Color(102, 0, 0));
        jTextPane18.setText("No hay ningun proyecto abierto");
        jScrollPane27.setViewportView(jTextPane18);

        jTextField10.setEditable(false);
        jTextField10.setForeground(new java.awt.Color(0, 102, 0));
        jTextField10.setText("responsable");

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel96)
                            .addComponent(jLabel94)
                            .addComponent(jLabel93)
                            .addComponent(jLabel90)
                            .addComponent(jLabel88)
                            .addComponent(jLabel89)
                            .addComponent(jLabel64)
                            .addComponent(jLabel95)
                            .addComponent(jLabel86))
                        .addGap(6, 6, 6)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane27, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox62, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox53, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox51, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox52, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addComponent(jComboBox48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox49, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox50, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel92))
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addComponent(jLabel87)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addComponent(jComboBox45, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox46, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox47, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel91))
                            .addComponent(jLabel85)))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(228, 228, 228)
                        .addComponent(jButton7)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel85)
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel96)
                    .addComponent(jScrollPane27, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel86)
                    .addComponent(jLabel87)
                    .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel64)
                    .addComponent(jComboBox62, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel88)
                    .addComponent(jComboBox45, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox46, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox47, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel91))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel89)
                    .addComponent(jComboBox48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox49, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox50, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel92))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel90)
                    .addComponent(jComboBox51, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel93)
                    .addComponent(jComboBox52, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel94)
                    .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox53, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel95))
                .addGap(18, 18, 18)
                .addComponent(jButton7)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jScrollPane15.setViewportView(jPanel5);

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 1363, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("IDP", jPanel9);

        jPanel15.setBackground(new java.awt.Color(255, 255, 255));

        jLabel37.setText("Macroproyecto:");

        jLabel36.setText("Nombre de la Sesion:");

        jLabel3.setForeground(new java.awt.Color(0, 51, 102));
        jLabel3.setText("Portapapeles");

        jLabel38.setText("Proyecto:");

        jLabel39.setForeground(new java.awt.Color(0, 102, 0));
        jLabel39.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jButton9.setText("Cerrar");
        jButton9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton9MouseClicked(evt);
            }
        });
        jButton9.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton9KeyPressed(evt);
            }
        });

        jButton10.setText("Cerrar");
        jButton10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton10MouseClicked(evt);
            }
        });
        jButton10.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton10KeyPressed(evt);
            }
        });

        jButton11.setText("Cerrar");
        jButton11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton11MouseClicked(evt);
            }
        });
        jButton11.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton11KeyPressed(evt);
            }
        });

        jTextPane19.setEditable(false);
        jTextPane19.setForeground(new java.awt.Color(102, 0, 0));
        jTextPane19.setText("No hay ningun macroproyecto abierto");
        jScrollPane28.setViewportView(jTextPane19);

        jTextPane20.setEditable(false);
        jTextPane20.setForeground(new java.awt.Color(102, 0, 0));
        jTextPane20.setText("No hay ningun proyecto abierto");
        jScrollPane29.setViewportView(jTextPane20);

        jTextField11.setEditable(false);
        jTextField11.setForeground(new java.awt.Color(0, 102, 0));
        jTextField11.setText("responsable");

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel36)
                            .addComponent(jLabel38)
                            .addComponent(jLabel37))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane29, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane28, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel15Layout.createSequentialGroup()
                                .addComponent(jLabel39)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton11)
                            .addComponent(jButton9)
                            .addComponent(jButton10)))
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addGap(160, 160, 160)
                        .addComponent(jLabel3)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addGap(41, 41, 41))
                    .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel39)
                        .addComponent(jLabel36)
                        .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton11)))
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane28, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton9)
                    .addComponent(jLabel37))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton10)
                    .addComponent(jLabel38)
                    .addComponent(jScrollPane29, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jScrollPane18.setViewportView(jPanel15);

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane18)
                .addContainerGap())
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane18, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Portapapeles", jPanel14);

        jPanel17.setBackground(new java.awt.Color(255, 255, 255));

        jLabel5.setForeground(new java.awt.Color(0, 51, 102));
        jLabel5.setText("Ordenar Lista de Proyectos Existentes");

        jButton4.setText("Ordenar");
        jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton4MouseClicked(evt);
            }
        });
        jButton4.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton4KeyPressed(evt);
            }
        });

        jComboBox16.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox16.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ascendente", "Descendente" }));

        jComboBox15.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox15.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Codigo", "Nombre", "Fecha de Creacion", "Fecha de Realizacion", "Creador (Personal)", "Asigando (Personal)" }));

        jComboBox65.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox65.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Marcroproyecto", "Planificacion", "Ingenieria", "IDP" }));

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jComboBox65, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton4))
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addGap(108, 108, 108)
                        .addComponent(jLabel5)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox65, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton4))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jScrollPane19.setViewportView(jPanel17);

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane19)
                .addContainerGap())
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane19)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Ordenar Lista", jPanel16);

        jPanel19.setBackground(new java.awt.Color(255, 255, 255));

        jLabel40.setText("Fecha de Creación:");

        jComboBox35.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox35.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tipo de Trabajo" }));

        jComboBox36.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox36.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tecnologia" }));
        jComboBox36.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox36ItemStateChanged(evt);
            }
        });

        jComboBox37.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox37.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox37.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox37ItemStateChanged(evt);
            }
        });

        jComboBox38.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox38.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CM" }));

        jComboBox39.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox39.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Region" }));
        jComboBox39.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox39ItemStateChanged(evt);
            }
        });

        jComboBox40.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox40.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox40.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox40ItemStateChanged(evt);
            }
        });

        jLabel41.setText("Nombre:");

        jLabel83.setText("Fecha Requerida:");

        jLabel97.setText("Codigo:");

        jComboBox59.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox59.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Region" }));
        jComboBox59.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox59ItemStateChanged(evt);
            }
        });

        jComboBox87.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox87.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tecnologia" }));
        jComboBox87.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox87ItemStateChanged(evt);
            }
        });

        jLabel120.setForeground(new java.awt.Color(0, 51, 102));
        jLabel120.setText("Macroproyecto");

        jComboBox88.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox88.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox88.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox88ItemStateChanged(evt);
            }
        });

        jComboBox89.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox89.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox89.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox89ItemStateChanged(evt);
            }
        });

        jComboBox90.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox90.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox90.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox90ItemStateChanged(evt);
            }
        });

        jLabel121.setText("Descripcion:");

        jComboBox91.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox91.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox91.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox91ItemStateChanged(evt);
            }
        });

        jTextPane2.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane2.setText("Ingrese la descripcion del macroproyecto");
        jTextPane2.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane2FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane2FocusLost(evt);
            }
        });
        jScrollPane31.setViewportView(jTextPane2);

        jComboBox92.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox92.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox92.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox92ItemStateChanged(evt);
            }
        });

        jLabel122.setText("Region:");

        jComboBox93.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox93.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Equipo" }));

        jLabel123.setText("Equipo:");

        jTextPane22.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane22.setText("Ingrese un nombre");
        jTextPane22.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane22FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane22FocusLost(evt);
            }
        });
        jScrollPane33.setViewportView(jTextPane22);

        jLabel124.setText("Asignado a:");

        jComboBox94.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox94.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jComboBox95.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox95.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Linea Base", "Si", "No" }));

        jLabel126.setText("Linea Base:");

        jComboBox96.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox96.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));

        jComboBox97.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox97.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Px", "1" }));
        jComboBox97.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox97ItemStateChanged(evt);
            }
        });

        jLabel127.setText("Mes Requerido:");

        jLabel128.setText("Planificacion:");

        jComboBox98.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox98.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Region" }));

        jLabel129.setText("Año de Compra:");

        jTextPane23.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane23.setText("Ingrese la descripcion del proyecto");
        jTextPane23.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane23FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane23FocusLost(evt);
            }
        });
        jScrollPane34.setViewportView(jTextPane23);

        jLabel130.setText("Tipos de MCI:");

        jComboBox99.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox99.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Prioridad" }));
        jComboBox99.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox99ItemStateChanged(evt);
            }
        });

        jLabel131.setText("Descripcion:");

        jLabel132.setText("Creado por:");

        jComboBox100.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox100.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tipos de MCI" }));

        jComboBox101.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox101.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox101.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox101ItemStateChanged(evt);
            }
        });

        jLabel133.setText("Prioridad:");

        jComboBox102.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox102.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Area" }));

        jLabel134.setText("Area (de Retraso):");

        jComboBox103.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox103.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "%", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100" }));
        jComboBox103.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox103ItemStateChanged(evt);
            }
        });

        jLabel135.setForeground(new java.awt.Color(0, 51, 102));
        jLabel135.setText("Proyecto");

        jLabel136.setText("Avance de Planificacion:");

        jComboBox104.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox104.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Rearreglo", "Si", "No" }));
        jComboBox104.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox104ItemStateChanged(evt);
            }
        });

        jLabel137.setText("Rearreglo:");

        jComboBox105.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox105.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Migracion", "Si", "No" }));
        jComboBox105.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox105ItemStateChanged(evt);
            }
        });

        jLabel138.setText("Migracion:");

        jComboBox106.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox106.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Radios Gestionables" }));

        jLabel139.setText("Nombre:");

        jLabel140.setText("Estacion:");

        jComboBox107.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox107.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Estacion" }));

        jLabel141.setText("Punto de Repeticion:");

        jComboBox108.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox108.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Punto de Repeticion" }));

        jLabel142.setText("Proveedor:");

        jLabel143.setForeground(new java.awt.Color(0, 102, 0));
        jLabel143.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jComboBox109.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox109.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Proveedor" }));
        jComboBox109.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox109ItemStateChanged(evt);
            }
        });

        jLabel144.setText("Radios Gestionables:");

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jComboBox110.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox110.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox110.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox110ItemStateChanged(evt);
            }
        });

        jComboBox111.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox111.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox111.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox111ItemStateChanged(evt);
            }
        });

        jComboBox112.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox112.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox112.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox112ItemStateChanged(evt);
            }
        });

        jTextField22.setEditable(false);
        jTextField22.setForeground(new java.awt.Color(0, 102, 0));
        jTextField22.setText("Semana");

        jComboBox113.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox113.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox113.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox113ItemStateChanged(evt);
            }
        });

        jTextPane24.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane24.setText("Ingrese observacion");
        jTextPane24.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane24FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane24FocusLost(evt);
            }
        });
        jScrollPane35.setViewportView(jTextPane24);

        jComboBox114.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox114.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox114.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox114ItemStateChanged(evt);
            }
        });

        jLabel145.setText("Observacion:");

        jComboBox115.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox115.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox115.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox115ItemStateChanged(evt);
            }
        });

        jComboBox116.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox116.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Area" }));

        jTextField23.setEditable(false);
        jTextField23.setForeground(new java.awt.Color(0, 102, 0));
        jTextField23.setText("Semana");

        jLabel146.setText("Area (de Retraso):");

        jLabel147.setText("Avance de Ingenieria:");

        jComboBox117.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox117.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "%", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100" }));
        jComboBox117.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox117ItemStateChanged(evt);
            }
        });

        jLabel150.setForeground(new java.awt.Color(0, 51, 102));
        jLabel150.setText("Ingenieria");

        jLabel151.setText("Mes Planificado:");

        jComboBox118.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox118.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));

        jLabel152.setText("PEP del Proyecto:");

        jComboBox119.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox119.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox119.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox119ItemStateChanged(evt);
            }
        });

        jTextField24.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextField24.setText("Ingrese PEP");
        jTextField24.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextField24FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextField24FocusLost(evt);
            }
        });

        jComboBox120.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox120.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jLabel153.setText("Ingenieria:");

        jComboBox121.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox121.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ing", "1" }));
        jComboBox121.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox121ItemStateChanged(evt);
            }
        });

        jLabel154.setText("Asignado a:");

        jTextPane26.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane26.setText("Ingrese documento de compra");
        jTextPane26.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane26FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane26FocusLost(evt);
            }
        });
        jScrollPane37.setViewportView(jTextPane26);

        jLabel156.setText("Documento de Compra de Equipo:");

        jLabel157.setText("Documento de Compra de Servicio:");

        jLabel158.setText("Area de Ingenieria:");

        jComboBox122.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox122.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Area" }));

        jLabel159.setText("Numero de Reserva:");

        jTextField26.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextField26.setText("Nº de reserva");
        jTextField26.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextField26FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextField26FocusLost(evt);
            }
        });

        jComboBox123.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox123.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox123.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox123ItemStateChanged(evt);
            }
        });

        jComboBox124.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox124.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox124.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox124ItemStateChanged(evt);
            }
        });

        jComboBox125.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox125.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox125.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox125ItemStateChanged(evt);
            }
        });

        jTextField27.setEditable(false);
        jTextField27.setForeground(new java.awt.Color(0, 102, 0));
        jTextField27.setText("Semana");

        jComboBox126.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox126.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox126.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox126ItemStateChanged(evt);
            }
        });

        jComboBox127.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox127.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox127.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox127ItemStateChanged(evt);
            }
        });

        jComboBox128.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox128.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox128.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox128ItemStateChanged(evt);
            }
        });

        jComboBox129.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox129.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox129.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox129ItemStateChanged(evt);
            }
        });

        jTextField28.setEditable(false);
        jTextField28.setForeground(new java.awt.Color(0, 102, 0));
        jTextField28.setText("Semana");

        jComboBox130.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox130.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox130.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox130ItemStateChanged(evt);
            }
        });

        jTextPane27.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane27.setText("Ingrese documento de compra");
        jTextPane27.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane27FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane27FocusLost(evt);
            }
        });
        jScrollPane38.setViewportView(jTextPane27);

        jLabel160.setText("Año de Ejecucion de Ingenieria:");

        jLabel161.setText("Semana Planificada para la Implementacion:");

        jLabel162.setText("Semana Planificada para el ATP:");

        jLabel163.setText("Semana Real de ATP:");

        jLabel164.setText("Semana Real de Gestion:");

        jLabel165.setText("Semana Real de SART:");

        jLabel166.setText("Semana de Puesta en Servicio:");

        jTextField29.setEditable(false);
        jTextField29.setForeground(new java.awt.Color(0, 102, 0));
        jTextField29.setText("Semana");

        jComboBox131.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox131.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox131.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox131ItemStateChanged(evt);
            }
        });

        jComboBox132.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox132.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox132.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox132ItemStateChanged(evt);
            }
        });

        jTextField30.setEditable(false);
        jTextField30.setForeground(new java.awt.Color(0, 102, 0));
        jTextField30.setText("Semana");

        jComboBox133.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox133.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox133.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox133ItemStateChanged(evt);
            }
        });

        jComboBox134.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox134.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox134.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox134ItemStateChanged(evt);
            }
        });

        jComboBox135.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox135.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox135.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox135ItemStateChanged(evt);
            }
        });

        jTextField31.setEditable(false);
        jTextField31.setForeground(new java.awt.Color(0, 102, 0));
        jTextField31.setText("Semana");

        jComboBox136.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox136.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox136.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox136ItemStateChanged(evt);
            }
        });

        jComboBox137.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox137.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox137.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox137ItemStateChanged(evt);
            }
        });

        jLabel167.setText("Creado por:");

        jLabel168.setText("Semana de Publicacion de Ingenieria:");

        jLabel169.setForeground(new java.awt.Color(0, 102, 0));
        jLabel169.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jLabel170.setText("Avance de Integracion de Proyectos:");

        jComboBox138.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox138.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "%", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100" }));
        jComboBox138.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox138ItemStateChanged(evt);
            }
        });

        jComboBox139.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox139.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox139.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox139ItemStateChanged(evt);
            }
        });

        jLabel171.setText("Area (de Retraso):");

        jComboBox140.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox140.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Area" }));

        jLabel174.setText("Observacion:");

        jTextPane28.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane28.setText("Ingrese observacion");
        jTextPane28.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane28FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane28FocusLost(evt);
            }
        });
        jScrollPane39.setViewportView(jTextPane28);

        jLabel175.setForeground(new java.awt.Color(0, 102, 0));
        jLabel175.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jLabel176.setText("Integracion de Proyectos:");

        jLabel177.setText("Fecha Planificada de Puesta en Servicio:");

        jComboBox141.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox141.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "IDP", "1" }));
        jComboBox141.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox141ItemStateChanged(evt);
            }
        });

        jComboBox142.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox142.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox142.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox142ItemStateChanged(evt);
            }
        });

        jComboBox143.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox143.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox143.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox143ItemStateChanged(evt);
            }
        });

        jLabel179.setText("Asignado a:");

        jLabel180.setForeground(new java.awt.Color(0, 51, 102));
        jLabel180.setText("Implementacion de Proyectos");

        jLabel181.setText("Creado por:");

        jComboBox145.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox145.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040", "2041", "2042", "2043", "2044", "2045", "2046", "2047", "2048", "2049", "2050" }));
        jComboBox145.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox145ItemStateChanged(evt);
            }
        });

        jLabel182.setText("Fecha Real de Puesta en Servicio:");

        jComboBox146.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox146.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        jComboBox146.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox146ItemStateChanged(evt);
            }
        });

        jComboBox147.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox147.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }));
        jComboBox147.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox147ItemStateChanged(evt);
            }
        });

        jComboBox148.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox148.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jLabel183.setForeground(new java.awt.Color(0, 102, 0));
        jLabel183.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jComboBox149.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox149.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jLabel184.setForeground(new java.awt.Color(0, 102, 0));
        jLabel184.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jComboBox150.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox150.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jLabel178.setForeground(new java.awt.Color(0, 102, 0));
        jLabel178.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jComboBox151.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jComboBox151.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Personal" }));

        jButton14.setText("Buscar");
        jButton14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton14MouseClicked(evt);
            }
        });
        jButton14.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton14KeyPressed(evt);
            }
        });

        jButton15.setText("Reiniciar");
        jButton15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton15MouseClicked(evt);
            }
        });
        jButton15.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton15KeyPressed(evt);
            }
        });

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel19Layout.createSequentialGroup()
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addContainerGap()
                                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel139)
                                            .addComponent(jLabel127)
                                            .addComponent(jLabel129)
                                            .addComponent(jLabel132)
                                            .addComponent(jLabel133)
                                            .addComponent(jLabel141)
                                            .addComponent(jLabel140)
                                            .addComponent(jLabel123)
                                            .addComponent(jLabel122)
                                            .addComponent(jLabel142)
                                            .addComponent(jLabel128)
                                            .addComponent(jLabel126)
                                            .addComponent(jLabel144)
                                            .addComponent(jLabel124)
                                            .addComponent(jLabel138)
                                            .addComponent(jLabel137)
                                            .addComponent(jLabel136)
                                            .addComponent(jLabel134)
                                            .addComponent(jLabel130)
                                            .addComponent(jLabel131))
                                        .addGap(6, 6, 6)
                                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jComboBox102, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox100, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox101, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox99, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox106, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox105, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox103, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox104, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel135)
                                            .addComponent(jComboBox95, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox96, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox97, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox98, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox107, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jScrollPane34, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox108, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jComboBox109, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel19Layout.createSequentialGroup()
                                                .addComponent(jLabel143)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jComboBox148, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(jComboBox93, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel19Layout.createSequentialGroup()
                                                .addComponent(jLabel183)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jComboBox94, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(jScrollPane33, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addGap(113, 113, 113)
                                        .addComponent(jButton14)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jButton15)))
                                .addGap(18, 18, 18)
                                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel19Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 403, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel97)
                                            .addComponent(jLabel41)
                                            .addComponent(jLabel40)
                                            .addComponent(jLabel121)
                                            .addComponent(jLabel83))
                                        .addGap(4, 4, 4)
                                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel19Layout.createSequentialGroup()
                                                .addComponent(jComboBox35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jComboBox36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jComboBox39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel19Layout.createSequentialGroup()
                                                .addComponent(jComboBox92, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jComboBox89, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jComboBox91, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel19Layout.createSequentialGroup()
                                                .addComponent(jComboBox88, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jComboBox90, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jComboBox40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(jScrollPane31, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel19Layout.createSequentialGroup()
                                                .addComponent(jComboBox37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(8, 8, 8)
                                                .addComponent(jComboBox59, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(7, 7, 7)
                                                .addComponent(jComboBox87, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(7, 7, 7)
                                                .addComponent(jComboBox38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel19Layout.createSequentialGroup()
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel145)
                                    .addComponent(jLabel153)
                                    .addComponent(jLabel146)
                                    .addComponent(jLabel147)
                                    .addComponent(jLabel164)
                                    .addComponent(jLabel163)
                                    .addComponent(jLabel162)
                                    .addComponent(jLabel161)
                                    .addComponent(jLabel165)
                                    .addComponent(jLabel160)
                                    .addComponent(jLabel168)
                                    .addComponent(jLabel167)
                                    .addComponent(jLabel158)
                                    .addComponent(jLabel159)
                                    .addComponent(jLabel157)
                                    .addComponent(jLabel156)
                                    .addComponent(jLabel152)
                                    .addComponent(jLabel151)
                                    .addComponent(jLabel154)
                                    .addComponent(jLabel166))
                                .addGap(17, 17, 17)
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox132, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox114, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox113, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField23))
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox136, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox137, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox131, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField29))
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox133, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox134, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox135, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField31))
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox125, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox124, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox123, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField30))
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox130, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox128, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox129, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField27))
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox119, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(7, 7, 7)
                                        .addComponent(jComboBox126, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox127, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField28))
                                    .addComponent(jComboBox116, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboBox117, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboBox118, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel150)
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jLabel169)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox149, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jScrollPane35, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboBox112, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox115, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox111, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox110, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jLabel184)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox120, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jScrollPane38, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboBox121, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jScrollPane37, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboBox122, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 502, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel19Layout.createSequentialGroup()
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel174)
                                    .addComponent(jLabel171)
                                    .addComponent(jLabel170)
                                    .addComponent(jLabel177)
                                    .addComponent(jLabel182)
                                    .addComponent(jLabel179)
                                    .addComponent(jLabel176)
                                    .addComponent(jLabel181))
                                .addGap(6, 6, 6)
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jComboBox141, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jLabel175)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox150, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jScrollPane39, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel180)
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox142, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox143, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox145, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jComboBox138, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboBox140, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jComboBox146, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox147, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox139, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                        .addComponent(jLabel178)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jComboBox151, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGap(175, 175, 175)
                        .addComponent(jLabel120)))
                .addContainerGap(14, Short.MAX_VALUE))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addComponent(jLabel120)
                        .addGap(16, 16, 16)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel97)
                            .addComponent(jComboBox37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox59, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox87, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel41)
                            .addComponent(jComboBox35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel83)
                            .addComponent(jComboBox88, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox90, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel40)
                            .addComponent(jComboBox92, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox89, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox91, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(8, 8, 8)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel121)
                            .addComponent(jScrollPane31, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel135)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane33, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel139))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox107, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel140))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox108, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel141))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox109, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel142))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox93, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel123))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox98, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel122))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox96, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel129))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel127)
                            .addComponent(jComboBox101, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox99, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel133))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel19Layout.createSequentialGroup()
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel143)
                                    .addComponent(jLabel132))
                                .addGap(10, 10, 10))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()
                                .addComponent(jComboBox148, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel124)
                                .addComponent(jComboBox94, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel183))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox106, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel144))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox105, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel138))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox104, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel137))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox103, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel136))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox95, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel126))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox102, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel134))
                        .addGap(7, 7, 7)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox100, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel130))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane34, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel131))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox97, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel128))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton14)
                            .addComponent(jButton15)))
                    .addComponent(jSeparator1)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addComponent(jLabel150)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox118, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel151))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel152))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane38, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel156))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel19Layout.createSequentialGroup()
                                .addComponent(jScrollPane37, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel159))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jComboBox122, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel158)))
                            .addComponent(jLabel157))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel167)
                                .addComponent(jLabel169))
                            .addComponent(jComboBox149, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel154)
                            .addComponent(jComboBox120, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel184, javax.swing.GroupLayout.Alignment.LEADING))
                        .addGap(9, 9, 9)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel168)
                            .addComponent(jComboBox115, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox111, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox110, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel160)
                            .addComponent(jComboBox112, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel161)
                            .addComponent(jComboBox119, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox126, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox127, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel162)
                            .addComponent(jComboBox130, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox128, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox129, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel163)
                            .addComponent(jComboBox125, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox124, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox123, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel164)
                            .addComponent(jComboBox133, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox134, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox135, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel165)
                            .addComponent(jComboBox136, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox137, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox131, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel166)
                            .addComponent(jComboBox132, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox114, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox113, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel147)
                            .addComponent(jComboBox117, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel146)
                            .addComponent(jComboBox116, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel145)
                            .addComponent(jScrollPane35, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox121, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel153))
                        .addGap(23, 23, 23)
                        .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel180)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel181)
                                .addComponent(jLabel175))
                            .addComponent(jComboBox150, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel179)
                            .addComponent(jLabel178)
                            .addComponent(jComboBox151, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel177)
                            .addComponent(jComboBox142, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox143, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox145, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel182)
                            .addComponent(jComboBox146, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox147, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox139, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel170)
                            .addComponent(jComboBox138, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel171)
                            .addComponent(jComboBox140, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel174)
                            .addComponent(jScrollPane39, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox141, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel176))))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        jScrollPane30.setViewportView(jPanel19);

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane30)
                .addContainerGap())
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane30, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Busqueda", jPanel18);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo", "Nombre", "Fecha de Creacion", "Fecha de Realizacion", "Descripcion", "Creado por", "Title 7", "Title 8", "Title 9", "Title 10", "Title 11", "Title 12", "Title 13", "Title 14", "Title 15", "Title 16", "Title 17", "Title 18", "Title 19", "Title 20", "Title 21", "Title 22", "Title 23", "Title 24", "Title 25", "Title 26", "Title 27", "Title 28", "Title 29", "Title 30", "Title 31", "Title 32", "Title 33", "Title 34", "Title 35", "Title 36", "Title 37", "Title 38", "Title 39", "Title 40", "Title 41", "Title 42", "Title 43", "Title 44", "Title 45", "Title 46", "Title 47", "Title 48", "Title 49", "Title 50", "Title 51", "Title 52", "Title 53", "Title 54", "Title 55", "Title 56", "Title 57", "Title 58", "Title 59", "Title 60", "Title 61", "Title 62", "Title 63"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_NEXT_COLUMN);
        jScrollPane4.setViewportView(jTable1);
        jScrollPane4.setViewportView(jTable1);

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 13368, Short.MAX_VALUE)
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 528, Short.MAX_VALUE)
        );

        jScrollPane11.setViewportView(jPanel6);

        listaProyectos.setText("Lista de Proyectos");

        recargarLista.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/recargar.png"))); // NOI18N
        recargarLista.setText("Recargar Lista");
        recargarLista.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                recargarListaMousePressed(evt);
            }
        });
        listaProyectos.add(recargarLista);

        menuVentanaPrincipal.add(listaProyectos);

        exportarExcel.setText("Exportar");

        hojaCalculo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/hoja_calculo.png"))); // NOI18N
        hojaCalculo.setText("Hoja de Calculo");
        hojaCalculo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                hojaCalculoMousePressed(evt);
            }
        });
        exportarExcel.add(hojaCalculo);

        menuVentanaPrincipal.add(exportarExcel);

        sesion.setText("Sesion");

        tareasAsignadas.setText("Tareas Asignadas");
        tareasAsignadas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                tareasAsignadasMousePressed(evt);
            }
        });
        sesion.add(tareasAsignadas);

        tareasCreadas.setText("Tareas Creadas");
        tareasCreadas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                tareasCreadasMousePressed(evt);
            }
        });
        sesion.add(tareasCreadas);
        sesion.add(jSeparator2);

        reportarError.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/Error.png"))); // NOI18N
        reportarError.setText("Reportar Error");
        reportarError.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                reportarErrorMousePressed(evt);
            }
        });
        sesion.add(reportarError);
        sesion.add(jSeparator4);

        cerrarSesion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/suspender.png"))); // NOI18N
        cerrarSesion.setText("Cerrar Sesion");
        cerrarSesion.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                cerrarSesionMousePressed(evt);
            }
        });
        sesion.add(cerrarSesion);

        salirSistema.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/system-suspend-hibernate.png"))); // NOI18N
        salirSistema.setText("Salir del Sistema");
        salirSistema.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                salirSistemaMousePressed(evt);
            }
        });
        sesion.add(salirSistema);

        menuVentanaPrincipal.add(sesion);

        ayuda.setText("Ayuda");

        ajustarResolucion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/monitor.png"))); // NOI18N
        ajustarResolucion.setText("Resolucion");

        r800x600.setText("800 x 600");
        r800x600.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                r800x600ItemStateChanged(evt);
            }
        });
        ajustarResolucion.add(r800x600);

        r1024x768.setText("1024 x 768");
        r1024x768.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                r1024x768ItemStateChanged(evt);
            }
        });
        ajustarResolucion.add(r1024x768);

        r1280x1024.setText("1280 x 1024");
        r1280x1024.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                r1280x1024ItemStateChanged(evt);
            }
        });
        ajustarResolucion.add(r1280x1024);

        ayuda.add(ajustarResolucion);

        sistemaCreditos.setText("Acerca del Sistema");
        sistemaCreditos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                sistemaCreditosMousePressed(evt);
            }
        });
        ayuda.add(sistemaCreditos);

        licencia.setText("Licencia");
        licencia.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                licenciaMousePressed(evt);
            }
        });
        ayuda.add(licencia);

        manual.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/manual_icon.png"))); // NOI18N
        manual.setText("Manual");
        manual.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                manualMousePressed(evt);
            }
        });
        ayuda.add(manual);

        menuVentanaPrincipal.add(ayuda);

        ventanaPrincipal.setJMenuBar(menuVentanaPrincipal);

        javax.swing.GroupLayout ventanaPrincipalLayout = new javax.swing.GroupLayout(ventanaPrincipal.getContentPane());
        ventanaPrincipal.getContentPane().setLayout(ventanaPrincipalLayout);
        ventanaPrincipalLayout.setHorizontalGroup(
            ventanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(ventanaPrincipalLayout.createSequentialGroup()
                .addGap(539, 539, 539)
                .addComponent(jLabel35)
                .addContainerGap())
            .addComponent(jScrollPane11, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
        );
        ventanaPrincipalLayout.setVerticalGroup(
            ventanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ventanaPrincipalLayout.createSequentialGroup()
                .addComponent(jLabel35)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 472, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        presupuesto.setTitle("Presupuesto");
        presupuesto.setBounds(new java.awt.Rectangle(430, 372, 420, 280));
        presupuesto.setResizable(false);

        jLabel99.setText("Equipamiento:");

        jTextField3.setText("0");
        jTextField3.setToolTipText("No exceda el 9223372036854775807");
        jTextField3.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextField3FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextField3FocusLost(evt);
            }
        });
        jTextField3.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextField3KeyReleased(evt);
            }
        });

        jLabel100.setText("Servicio:");

        jTextField5.setText("0");
        jTextField5.setToolTipText("No exceda el 9223372036854775807");
        jTextField5.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextField5FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextField5FocusLost(evt);
            }
        });
        jTextField5.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextField5KeyReleased(evt);
            }
        });

        jLabel101.setText("Otros:");

        jTextField6.setText("0");
        jTextField6.setToolTipText("No exceda el 9223372036854775807");
        jTextField6.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextField6FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextField6FocusLost(evt);
            }
        });
        jTextField6.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextField6KeyReleased(evt);
            }
        });

        jCheckBox2.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jCheckBox2.setText("Descartar");
        jCheckBox2.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jCheckBox2ItemStateChanged(evt);
            }
        });

        jCheckBox3.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jCheckBox3.setText("Descartar");
        jCheckBox3.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jCheckBox3ItemStateChanged(evt);
            }
        });

        jCheckBox4.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jCheckBox4.setText("Descartar");
        jCheckBox4.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jCheckBox4ItemStateChanged(evt);
            }
        });

        jLabel102.setText("Total:");

        jTextField7.setEnabled(false);

        jButton13.setText("Guardar");
        jButton13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton13MouseClicked(evt);
            }
        });
        jButton13.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton13KeyPressed(evt);
            }
        });

        jLabel98.setText("*Proyecto:");

        jTextPane15.setEditable(false);
        jTextPane15.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jTextPane15.setForeground(new java.awt.Color(0, 102, 0));
        jScrollPane23.setViewportView(jTextPane15);

        jLabel103.setText("*Personal:");

        jLabel104.setForeground(new java.awt.Color(0, 102, 0));
        jLabel104.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jTextField12.setEditable(false);
        jTextField12.setForeground(new java.awt.Color(0, 102, 0));
        jTextField12.setText("Ingrese PEP");

        javax.swing.GroupLayout presupuestoLayout = new javax.swing.GroupLayout(presupuesto.getContentPane());
        presupuesto.getContentPane().setLayout(presupuestoLayout);
        presupuestoLayout.setHorizontalGroup(
            presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(presupuestoLayout.createSequentialGroup()
                .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(presupuestoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel103)
                            .addComponent(jLabel98)
                            .addComponent(jLabel99)
                            .addComponent(jLabel100)
                            .addComponent(jLabel101)
                            .addComponent(jLabel102))
                        .addGap(6, 6, 6)
                        .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(presupuestoLayout.createSequentialGroup()
                                .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jCheckBox4))
                            .addGroup(presupuestoLayout.createSequentialGroup()
                                .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jCheckBox3))
                            .addComponent(jScrollPane23, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(presupuestoLayout.createSequentialGroup()
                                .addComponent(jLabel104)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(presupuestoLayout.createSequentialGroup()
                                .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jCheckBox2))))
                    .addGroup(presupuestoLayout.createSequentialGroup()
                        .addGap(162, 162, 162)
                        .addComponent(jButton13)))
                .addContainerGap(249, Short.MAX_VALUE))
        );
        presupuestoLayout.setVerticalGroup(
            presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(presupuestoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel103)
                    .addComponent(jLabel104)
                    .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel98)
                    .addComponent(jScrollPane23, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel99)
                    .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCheckBox2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel100)
                    .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCheckBox3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel101)
                    .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCheckBox4))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(presupuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel102)
                    .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButton13)
                .addContainerGap(66, Short.MAX_VALUE))
        );

        reporteErrores.setTitle("Reporte de Errores");
        reporteErrores.setBounds(new java.awt.Rectangle(390, 372, 500, 280));
        reporteErrores.setResizable(false);

        jLabel57.setText("Personal:");

        jLabel58.setForeground(new java.awt.Color(0, 102, 0));
        jLabel58.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/usuario.png"))); // NOI18N

        jLabel59.setText("*Tipo de Error:");

        jLabel60.setText("*Descripcion:");

        jTextPane6.setText("Ingrese una descripcion");
        jTextPane6.setToolTipText("Trate de ser lo mas especifico posible");
        jTextPane6.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextPane6FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextPane6FocusLost(evt);
            }
        });
        jScrollPane8.setViewportView(jTextPane6);

        jLabel61.setText("*Descripcion (Usuario):");

        jButton37.setText("Reportar");
        jButton37.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton37MouseClicked(evt);
            }
        });
        jButton37.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton37KeyPressed(evt);
            }
        });

        jTextPane5.setEditable(false);
        jTextPane5.setToolTipText("Descripcion de tipos de errores generales");
        jScrollPane7.setViewportView(jTextPane5);

        jComboBox14.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Error" }));
        jComboBox14.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox14ItemStateChanged(evt);
            }
        });

        jTextField13.setEditable(false);
        jTextField13.setForeground(new java.awt.Color(0, 102, 0));
        jTextField13.setText("Ingrese PEP");

        javax.swing.GroupLayout reporteErroresLayout = new javax.swing.GroupLayout(reporteErrores.getContentPane());
        reporteErrores.getContentPane().setLayout(reporteErroresLayout);
        reporteErroresLayout.setHorizontalGroup(
            reporteErroresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(reporteErroresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(reporteErroresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel57)
                    .addComponent(jLabel59)
                    .addComponent(jLabel60)
                    .addComponent(jLabel61))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 50, Short.MAX_VALUE)
                .addGroup(reporteErroresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 309, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 309, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(reporteErroresLayout.createSequentialGroup()
                        .addComponent(jLabel58)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(20, Short.MAX_VALUE))
            .addGroup(reporteErroresLayout.createSequentialGroup()
                .addGap(201, 201, 201)
                .addComponent(jButton37)
                .addContainerGap(224, Short.MAX_VALUE))
        );
        reporteErroresLayout.setVerticalGroup(
            reporteErroresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(reporteErroresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(reporteErroresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel57)
                    .addComponent(jLabel58)
                    .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(reporteErroresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel59)
                    .addComponent(jComboBox14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(reporteErroresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel60))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(reporteErroresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel61)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButton37)
                .addGap(98, 98, 98))
        );

        creditos.setTitle("Acerca del Sistema");
        creditos.setBounds(new java.awt.Rectangle(415, 297, 450, 430));
        creditos.setResizable(false);

        jPanel13.setBackground(new java.awt.Color(255, 255, 255));

        jLabel105.setForeground(new java.awt.Color(0, 0, 102));
        jLabel105.setText("Sistema Gestor de Proyectos,");

        jLabel106.setForeground(new java.awt.Color(0, 102, 0));
        jLabel106.setText("Version Alpha 1.01.22, Sistema Modular para la Gestión de Proyectos");

        jLabel107.setForeground(new java.awt.Color(0, 102, 0));
        jLabel107.setText("Copyright (C) 2011");

        jLabel108.setForeground(new java.awt.Color(0, 0, 102));
        jLabel108.setText("Marco Antonio Ramírez Sánchez");

        jLabel109.setText("This program is free software: you can redistribute it and/or modify");

        jLabel110.setText("it under the terms of the GNU General Public License as published by");

        jLabel111.setText("the Free Software Foundation, either version 3 of the License, or");

        jLabel112.setText("(at your option) any later version.");

        jLabel113.setText("This program is distributed in the hope that it will be useful,");

        jLabel114.setText("but WITHOUT ANY WARRANTY; without even the implied warranty of");

        jLabel115.setText("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the");

        jLabel116.setText("GNU General Public License for more details.");

        jLabel117.setText("You should have received a copy of the GNU General Public License");

        jLabel118.setText("along with this program. If not, see");

        jLabel119.setForeground(new java.awt.Color(0, 0, 102));
        jLabel119.setText("<http://www.gnu.org/licenses/>.");
        jLabel119.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jLabel119.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jLabel119MousePressed(evt);
            }
        });

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jLabel105)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel106))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jLabel107)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel108))
                    .addComponent(jLabel109)
                    .addComponent(jLabel110)
                    .addComponent(jLabel111)
                    .addComponent(jLabel112)
                    .addComponent(jLabel113)
                    .addComponent(jLabel114)
                    .addComponent(jLabel115)
                    .addComponent(jLabel116)
                    .addComponent(jLabel117)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jLabel118)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel119)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel105)
                    .addComponent(jLabel106))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel108)
                    .addComponent(jLabel107))
                .addGap(18, 18, 18)
                .addComponent(jLabel109)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel110)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel111)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel112)
                .addGap(18, 18, 18)
                .addComponent(jLabel113)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel114)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel115)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel116)
                .addGap(18, 18, 18)
                .addComponent(jLabel117)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel118)
                    .addComponent(jLabel119))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jScrollPane24.setViewportView(jPanel13);

        javax.swing.GroupLayout creditosLayout = new javax.swing.GroupLayout(creditos.getContentPane());
        creditos.getContentPane().setLayout(creditosLayout);
        creditosLayout.setHorizontalGroup(
            creditosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(creditosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane24, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                .addContainerGap())
        );
        creditosLayout.setVerticalGroup(
            creditosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(creditosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane24, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
                .addContainerGap())
        );

        cargandoDatos.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        cargandoDatos.setTitle("Cargando Datos");
        cargandoDatos.setBounds(new java.awt.Rectangle(490, 447, 300, 130));
        cargandoDatos.setResizable(false);

        jLabel34.setText("Por favor espere mientras se cargan los datos");

        javax.swing.GroupLayout cargandoDatosLayout = new javax.swing.GroupLayout(cargandoDatos.getContentPane());
        cargandoDatos.getContentPane().setLayout(cargandoDatosLayout);
        cargandoDatosLayout.setHorizontalGroup(
            cargandoDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cargandoDatosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(cargandoDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel34)
                    .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(169, Short.MAX_VALUE))
        );
        cargandoDatosLayout.setVerticalGroup(
            cargandoDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cargandoDatosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel34)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(255, Short.MAX_VALUE))
        );

        jMenu5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/agregar.png"))); // NOI18N
        jMenu5.setText("Crear");
        jMenu5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        jMenuItem29.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem29.setText("Macroproyecto");
        jMenuItem29.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem29MousePressed(evt);
            }
        });
        jMenu5.add(jMenuItem29);

        jMenuItem10.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem10.setText("Proyecto");
        jMenuItem10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem10MousePressed(evt);
            }
        });
        jMenu5.add(jMenuItem10);

        jMenuItem12.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem12.setText("Ingenieria");
        jMenuItem12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem12MousePressed(evt);
            }
        });
        jMenu5.add(jMenuItem12);

        jMenuItem13.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem13.setText("Integracion de Proyectos");
        jMenuItem13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem13MousePressed(evt);
            }
        });
        jMenu5.add(jMenuItem13);

        jMenuItem28.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem28.setText("Tarea");
        jMenuItem28.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem28MousePressed(evt);
            }
        });
        jMenu5.add(jMenuItem28);

        menuTablaPrincipal.add(jMenu5);

        jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/presupuesto.png"))); // NOI18N
        jMenu3.setText("Presupuesto");
        jMenu3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        jMenuItem2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem2.setText("Ajustar Presupuesto");
        jMenuItem2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem2MousePressed(evt);
            }
        });
        jMenu3.add(jMenuItem2);

        menuTablaPrincipal.add(jMenu3);

        jMenu7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/modificar.png"))); // NOI18N
        jMenu7.setText("Modificar");
        jMenu7.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        jMenuItem16.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem16.setText("Macroproyecto");
        jMenuItem16.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem16MousePressed(evt);
            }
        });
        jMenu7.add(jMenuItem16);

        jMenuItem20.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem20.setText("Proyecto");
        jMenuItem20.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem20MousePressed(evt);
            }
        });
        jMenu7.add(jMenuItem20);

        jMenuItem21.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem21.setText("Ingenieria");
        jMenuItem21.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem21MousePressed(evt);
            }
        });
        jMenu7.add(jMenuItem21);

        jMenuItem23.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem23.setText("Integracion de Proyectos");
        jMenuItem23.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem23MousePressed(evt);
            }
        });
        jMenu7.add(jMenuItem23);

        menuTablaPrincipal.add(jMenu7);

        jMenu8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/eliminarProducto.png"))); // NOI18N
        jMenu8.setText("Eliminar");
        jMenu8.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        jMenuItem24.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem24.setText("Macroproyecto");
        jMenuItem24.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem24MousePressed(evt);
            }
        });
        jMenu8.add(jMenuItem24);

        jMenuItem25.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jMenuItem25.setText("Proyecto");
        jMenuItem25.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem25MousePressed(evt);
            }
        });
        jMenu8.add(jMenuItem25);

        menuTablaPrincipal.add(jMenu8);

        jMenuItem30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/modificar.png"))); // NOI18N
        jMenuItem30.setText("Modificar");
        jMenuItem30.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem30MousePressed(evt);
            }
        });
        menuTablaTareas.add(jMenuItem30);

        jMenuItem31.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Editados/eliminarProducto.png"))); // NOI18N
        jMenuItem31.setText("Eliminar");
        jMenuItem31.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem31MousePressed(evt);
            }
        });
        menuTablaTareas.add(jMenuItem31);

        grupoAjusteResolucion.add(r800x600);
        grupoAjusteResolucion.add(r1024x768);
        grupoAjusteResolucion.add(r1280x1024);

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Sistema Gestor de Proyectos - Ingreso de Usuarios");
        setBounds(new java.awt.Rectangle(240, 212, 800, 600));
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        jInternalFrame1.setTitle("Inicio de Sesion");
        try {
            jInternalFrame1.setSelected(true);
        } catch (java.beans.PropertyVetoException e1) {
            e1.printStackTrace();
        }
        jInternalFrame1.setVisible(true);

        jButton1.setText("Iniciar Sesion");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });
        jButton1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton1KeyPressed(evt);
            }
        });

        jButton2.setText("Salir");
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton2MouseClicked(evt);
            }
        });
        jButton2.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton2KeyPressed(evt);
            }
        });

        jTextField1.setText("Login");
        jTextField1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextField1FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextField1FocusLost(evt);
            }
        });
        jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jTextField1KeyPressed(evt);
            }
        });

        jPasswordField1.setText("password");
        jPasswordField1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jPasswordField1FocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jPasswordField1FocusLost(evt);
            }
        });
        jPasswordField1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jPasswordField1KeyPressed(evt);
            }
        });

        jButton3.setLabel("Recuperar contraseña");
        jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton3MouseClicked(evt);
            }
        });

        jCheckBox1.setText("No recuerda su contraseña?");
        jCheckBox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());
        jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
        jInternalFrame1Layout.setHorizontalGroup(
            jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jInternalFrame1Layout.createSequentialGroup()
                .addGap(60, 60, 60)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jCheckBox1)
                    .addComponent(jButton1)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(34, 34, 34)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButton2)
                    .addComponent(jButton3)
                    .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(67, Short.MAX_VALUE))
        );
        jInternalFrame1Layout.setVerticalGroup(
            jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jInternalFrame1Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addGap(18, 18, 18)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButton3)
                    .addGroup(jInternalFrame1Layout.createSequentialGroup()
                        .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField1)
                            .addComponent(jPasswordField1))
                        .addGap(18, 18, 18)
                        .addComponent(jCheckBox1)))
                .addGap(42, 42, 42))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(116, 116, 116)
                .addComponent(jInternalFrame1)
                .addGap(113, 113, 113))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(152, 152, 152)
                .addComponent(jInternalFrame1)
                .addGap(179, 179, 179))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void ajustar_resolucion(int width, int height) {
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        if (width == 0 && height == 0) {
            width = d.width;
            height = d.height;
        } else {
            if (width > d.width || height > d.height) {
                width = d.width;
                height = d.height;
                JOptionPane.showMessageDialog(null, "La resolucion que usted ha elegido es mayor a la actual", "Ajustar Resolucion", JOptionPane.ERROR_MESSAGE);
            }
        }
        setBounds((int) (width / 2 - 800 / 2), (int) (height / 2 - 600 / 2), 781, 554);//0, 0, d.width, d.height-30
        tareas.setBounds((int) (width / 2 - 450 / 2), (int) (height / 2 - 430 / 2), 450, 430);
        ventanaPrincipal.setBounds(0, 0, width, height - 30);
        presupuesto.setBounds((int) (width / 2 - 420 / 2), (int) (height / 2 - 280 / 2), 420, 280);
        reporteErrores.setBounds((int) (width / 2 - 500 / 2), (int) (height / 2 - 280 / 2), 500, 280);
        creditos.setBounds((int) (width / 2 - 450 / 2), (int) (height / 2 - 430 / 2), 450, 430);
        cargandoDatos.setBounds((int) (width / 2 - 300 / 2), (int) (height / 2 - 130 / 2), 300, 130);
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con los proveedores
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_proveedores() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from proveedores;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select nombre from proveedores order by nombre;";
            rs = con.solo_select(sql);
            rr[0] = "Proveedor";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con las estaciones
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_estaciones() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from estaciones;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select nombre from estaciones order by nombre;";
            rs = con.solo_select(sql);
            rr[0] = "Estacion";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con los puntos de repeticion
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_puntos_repeticion() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from puntos_repeticion;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select nombre from puntos_repeticion order by nombre;";
            rs = con.solo_select(sql);
            rr[0] = "Punto de Repeticion";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con los equipos existentes
     *
     * @param web boolean que indica si se deben cargar los equipos de un
     * proveedor (true) o se deja vacio (false)
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_equipos(boolean web, JComboBox jcomboboxpro) {
        try {
            String[] rr;
            int aux = 0;
            if (web && jcomboboxpro != null) {
                sql = "select count(*) from equipos, proveedores, proveedores_tecnologias, tecnologias_equipos "
                        + "where proveedores.nombre = '" + jcomboboxpro.getSelectedItem() + "' "
                        + "and proveedores.idproveedor = proveedores_tecnologias.proveedor "
                        + "and proveedores_tecnologias.tecnologia = tecnologias_equipos.tecnologia "
                        + "and tecnologias_equipos.equipo = equipos.idequipo;";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    aux = Integer.parseInt(rs.getString(1));
                }
                rr = new String[aux + 1];
                sql = "select equipos.nombre from equipos, proveedores, proveedores_tecnologias, tecnologias_equipos "
                        + "where proveedores.nombre = '" + jcomboboxpro.getSelectedItem() + "' "
                        + "and proveedores.idproveedor = proveedores_tecnologias.proveedor "
                        + "and proveedores_tecnologias.tecnologia = tecnologias_equipos.tecnologia "
                        + "and tecnologias_equipos.equipo = equipos.idequipo "
                        + "order by equipos.nombre;";
                rs = con.solo_select(sql);
                rr[0] = "Equipo";
                aux = 1;
                while (rs.next()) {
                    rr[aux] = rs.getString(1);
                    aux++;
                }
            } else {
                rr = new String[aux + 1];
                rr[0] = "Equipo";
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con las opciones de radios
     * gestionables existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_radios_gestionables() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from radios_gestionables;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select opcion from radios_gestionables order by opcion;";
            rs = con.solo_select(sql);
            rr[0] = "Radios Gestionables";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con los tipos de mci
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_tipo_mci() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from tipos_mci;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select tipo from tipos_mci order by tipo;";
            rs = con.solo_select(sql);
            rr[0] = "Tipos de MCI";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuleve un DefaultComboBoxModel con los tipos de tareas
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_tipos_tareas() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from tipos_tareas;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select tipo from tipos_tareas order by tipo;";
            rs = con.solo_select(sql);
            rr[0] = "Tareas";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con los estatus existentes,
     * exceptuando "Eliminado"
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_estatus() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from estatus where nombre != 'Eliminado';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux];
            sql = "select nombre from estatus where nombre != 'Eliminado' order by idestatus;";
            rs = con.solo_select(sql);
            aux = 0;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con las tareas
     * pertenecientes al mismo macroproyecto
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_tareas_macro() {
        try {
            String[] rr, rrr;
            int aux = 0, auxx = 0;
            sql = "select count(*) from control_versiones where macroproyecto = '" + macro + "' and estatus != 2 and proyecto_planificacion != 0;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux];
            aux = 0;
            sql = "select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and estatus != 2 and proyecto_planificacion != 0;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            for (int i = 0; i < aux; i++) {
                sql = "select count(*) from tareas where control_version = " + rr[i] + " and estatus != 2;";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    auxx += Integer.parseInt(rs.getString(1));
                }
            }
            rrr = new String[auxx + 1];
            auxx = 1;
            rrr[0] = "Tarea";
            for (int i = 0; i < aux; i++) {
                sql = "select idtarea from tareas where control_version = " + rr[i] + " and estatus != 2 order by idtarea;";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    rrr[auxx] = rs.getString(1);
                    auxx++;
                }
            }
            return new javax.swing.DefaultComboBoxModel(rrr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuleve un DefaultComboBoxModel con las areas existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_areas() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from areas;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux];
            sql = "select nombre from areas where idarea != 2 order by nombre;";
            rs = con.solo_select(sql);
            rr[0] = "Area";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuleve un DefaultComboBoxModel con las areas de ingenieria
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_areas_ing() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from areas where area = 2;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select nombre from areas where idarea != 2 and area = 2 order by nombre;";
            rs = con.solo_select(sql);
            rr[0] = "Area";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con las prioridades
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_prioridades() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from prioridades;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select nombre from prioridades order by idprioridad;";
            rs = con.solo_select(sql);
            rr[0] = "Prioridad";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con el personal existente
     *
     * @param in si es true devuelve la lista con "Personal" al principio, en
     * caso contrario no lo hace
     * @param area 1 para el personal de Planificacion, 2 para el personal de
     * Ingenieria, 3 para el personal de IDP
     * @return
     */
    private javax.swing.DefaultComboBoxModel cargar_personal(boolean in, int area) {
        try {
            String[] rr;
            int aux = 0;
            if (in) {
                if (area == 1) { //Planificacion
                    sql = "select count(*) from personal where area = 1;";
                }
                if (area == 2) { //Ingenieria
                    sql = "select count(*) from personal where area in(4,5,6);";
                }
                if (area == 3) { //IDP
                    sql = "select count(*) from personal where area = 3;";
                }
            } else {
                sql = "select count(*) from personal;";
            }
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            if (in) {
                rr = new String[aux + 1];
                if (area == 1) { //Planificacion
                    sql = "select nombre, apellido from personal where area = 1 order by nombre;";
                }
                if (area == 2) { //Ingenieria
                    sql = "select nombre, apellido from personal where area in(4,5,6) order by nombre;";
                }
                if (area == 3) { //IDP
                    sql = "select nombre, apellido from personal where area = 3 order by nombre;";
                }
            } else {
                rr = new String[aux];
                sql = "select nombre, apellido from personal order by nombre;";
            }
            rs = con.solo_select(sql);
            if (in) {
                rr[0] = "Personal";
                aux = 1;
            } else {
                aux = 0;
            }
            while (rs.next()) {
                rr[aux] = rs.getString(1) + " " + rs.getString(2);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve a los valores por defecto los parametro de una
     * integracion de proyecto
     */
    private void idp() {
        jComboBox45.setSelectedItem("Dia");
        jComboBox46.setSelectedItem("Mes");
        jComboBox47.setSelectedItem("Año");
        jComboBox51.setSelectedItem("%");
        jTextPane11.setText("Ingrese observacion");
        jComboBox52.setModel(cargar_areas());
        jComboBox62.setModel(cargar_personal(false, 0));
        jComboBox62.setSelectedItem(jTextField10.getText());
    }

    /**
     * Funcion que devuelve a los valores por defecto los parametro de una
     * ingenieria
     */
    private void ingen() {
        jComboBox84.setSelectedItem("Dia");
        jComboBox85.setSelectedItem("Mes");
        jComboBox86.setSelectedItem("Año");
        jComboBox61.setModel(cargar_personal(false, 0));
        jComboBox61.setSelectedItem(jTextField9.getText());
        jComboBox42.setModel(cargar_areas());
        jComboBox34.setModel(cargar_areas_ing());
        jComboBox43.setSelectedItem(anno_actual());
        jComboBox33.setSelectedItem("Mes");
        jTextField2.setText("Ingrese PEP");
        jTextPane8.setText("Ingrese documento de compra");
        jTextPane9.setText("Ingrese documento de compra");
        jTextField4.setText("Nº de reserva");
        jComboBox66.setSelectedItem("Dia");
        jComboBox67.setSelectedItem("Mes");
        jComboBox68.setSelectedItem("Año");
        jComboBox69.setSelectedItem("Dia");
        jComboBox70.setSelectedItem("Mes");
        jComboBox71.setSelectedItem("Año");
        jComboBox72.setSelectedItem("Dia");
        jComboBox73.setSelectedItem("Mes");
        jComboBox74.setSelectedItem("Año");
        jComboBox75.setSelectedItem("Dia");
        jComboBox76.setSelectedItem("Mes");
        jComboBox77.setSelectedItem("Año");
        jComboBox78.setSelectedItem("Dia");
        jComboBox79.setSelectedItem("Mes");
        jComboBox80.setSelectedItem("Año");
        jComboBox81.setSelectedItem("Dia");
        jComboBox82.setSelectedItem("Mes");
        jComboBox83.setSelectedItem("Año");
        jComboBox41.setSelectedItem("%");
        jTextPane10.setText("Ingrese observacion");
        jComboBox44.setSelectedItem("Ing");
    }

    /**
     * Funcion que devuelve a los valores por defecto los parametro de un
     * proyecto
     */
    private void plani() {
        jComboBox19.setModel(cargar_proveedores());
        jComboBox21.setModel(cargar_reg());
        jComboBox24.setModel(cargar_prioridades());
        jComboBox17.setModel(cargar_estaciones());
        jComboBox18.setModel(cargar_puntos_repeticion());
        jComboBox20.setModel(cargar_equipos(false, null));
        jComboBox25.setModel(cargar_radios_gestionables());
        jComboBox29.setModel(cargar_areas());
        jComboBox30.setModel(cargar_tipo_mci());
        jComboBox60.setModel(cargar_personal(false, 0));
        jComboBox60.setSelectedItem(jTextField8.getText());
        jTextPane7.setText("Ingrese un nombre");
        jComboBox22.setSelectedItem("Año");
        jComboBox23.setSelectedItem("Mes");
        jComboBox26.setSelectedItem("Migracion");
        jComboBox28.setSelectedItem("%");
        jComboBox32.setSelectedItem("Linea Base");
        jTextPane4.setText("Ingrese la descripcion del proyecto");
        jComboBox31.setSelectedItem("Px");
    }

    private void busqueda() {
        jComboBox59.setModel(cargar_reg());
        jComboBox87.setModel(cargar_tec());
        jComboBox35.setModel(cargar_tipos_t());
        jComboBox36.setModel(cargar_tec());
        jComboBox39.setModel(cargar_reg());
        jComboBox107.setModel(cargar_estaciones());
        jComboBox108.setModel(cargar_puntos_repeticion());
        jComboBox109.setModel(cargar_proveedores());
        jComboBox98.setModel(cargar_reg());
        jComboBox99.setModel(cargar_prioridades());
        jComboBox148.setModel(cargar_personal(true, 1));
        jComboBox94.setModel(cargar_personal(true, 1));
        jComboBox106.setModel(cargar_radios_gestionables());
        jComboBox102.setModel(cargar_areas());
        jComboBox100.setModel(cargar_tipo_mci());
        jComboBox122.setModel(cargar_areas_ing());
        jComboBox149.setModel(cargar_personal(true, 2));
        jComboBox120.setModel(cargar_personal(true, 2));
        jComboBox112.setSelectedItem(anno_actual());
        jComboBox116.setModel(cargar_areas());
        jComboBox150.setModel(cargar_personal(true, 3));
        jComboBox151.setModel(cargar_personal(true, 3));
        jComboBox140.setModel(cargar_areas());
        jComboBox37.setSelectedItem("Año");
        jComboBox40.setSelectedItem("Año");
        jComboBox91.setSelectedItem("Año");
        jComboBox88.setSelectedItem("Dia");
        jComboBox92.setSelectedItem("Dia");
        jComboBox89.setSelectedItem("Mes");
        jComboBox90.setSelectedItem("Mes");
        jTextPane2.setText("Ingrese la descripcion del macroproyecto");
    }

    /**
     * Funcion que devuelve la hora actual del sistema
     *
     * @return String que contiene la hora actual del sistema
     */
    private String hora_actual() {
        fecha = new Date();
        return fecha.toString().substring(11, 19);
    }

    /**
     * Funcion que permite crear un proyecto despues de creado un macroproyecto
     */
    private void macro_proy() {
        JOptionPane.showMessageDialog(null, "Se creo el macroproyecto con exito", "Creacion de Macroproyecto", JOptionPane.INFORMATION_MESSAGE);
        cargar_crear_macro();
    }

    /**
     * Funcion que devuelve el nombre de un equipo apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre del equipo
     */
    private String get_equ(String getString) {
        try {
            sqlt1 = "select nombre from equipos where idequipo = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el nombre de un proveedor apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre del proveedor
     */
    private String get_pro(String getString) {
        try {
            sqlt1 = "select nombre from proveedores where idproveedor = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el nombre de un radio gestionable apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre del radio gestionable
     */
    private String get_rge(String getString) {
        try {
            sqlt1 = "select opcion from radios_gestionables where idradio_gestionable = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el nombre de un tipo de mci apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre del tipo de mci
     */
    private String get_tmc(String getString) {
        try {
            sqlt1 = "select tipo from tipos_mci where idtipo_mci = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el nombre de un punto de repeticion apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre del punto de repeticion
     */
    private String get_pre(String getString) {
        try {
            sqlt1 = "select nombre from puntos_repeticion where idpunto_repeticion = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el nombre de un area apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre del area
     */
    private String get_area(String getString) {
        try {
            sqlt1 = "select nombre from areas where idarea = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el nombre de una prioridad apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre de la prioridad
     */
    private String get_pri(String getString) {
        try {
            sqlt1 = "select nombre from prioridades where idprioridad = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el nombre de una region apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre de la region
     */
    private String get_reg(String getString) {
        try {
            sqlt1 = "select nombre from regiones where idregion = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el nombre de una estacion apartir de su id
     *
     * @param getString id del cual se extraera el nombre
     * @return nombre de la estacion
     */
    private String get_est(String getString) {
        try {
            sqlt1 = "select nombre from estaciones where idestacion = " + getString + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                return rst1.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el tipo de un tipo de tarea apartir de su id
     *
     * @param id String que contiene el id del tipo de tarea
     * @return String que contiene el tipo
     */
    private String get_t_t(String id) {
        try {
            sqlt2 = "select tipo from tipos_tareas where idtipo_tarea = '" + id + "';";
            rst2 = cont2.solo_select(sqlt2);
            while (rst2.next()) {
                return rst2.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve el id de un estatus apartir de su nombre
     *
     * @param nombre String que contiene el nombre
     * @return String que contiene el id
     */
    private String get_id_estatus(String nombre) {
        try {
            sql = "select idestatus from estatus where nombre = '" + nombre + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return rs.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve el nombre de un estatus apartir de su id
     *
     * @param id String que contiene el id
     * @return String que contiene el nombre
     */
    private String get_estatus(String id) {
        try {
            sqlt2 = "select nombre from estatus where idestatus = " + id + ";";
            rst2 = cont2.solo_select(sqlt2);
            while (rst2.next()) {
                return rst2.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve el id de un tipo de tarea apartir de su tipo
     *
     * @param tipo String que contiene el tipo de tarea
     * @return String que contiene el id
     */
    private String get_id_t_t(String tipo) {
        try {
            sql = "select idtipo_tarea from tipos_tareas where tipo = '" + tipo + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return rs.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve el id del personal apartir de su nombre completo
     *
     * @param nombre String que contiene el nombre y apellido
     * @return String que contiene el id
     */
    private String get_id_per(String nombre) {
        try {
            sql = "select idpersonal,nombre,apellido from personal;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                if (nombre.compareTo(rs.getString(2) + " " + rs.getString(3)) == 0) {
                    return rs.getString(1);
                }
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que retorna el nombre de un area en la que trabaja una persona
     * apartir del id de la persona
     *
     * @param id del personal
     * @return String que contiene el nombre del area
     */
    private String get_area_del_personal(String id) {
        try {
            sqlt2 = "select areas.nombre from areas, personal where personal.idpersonal = " + id + " and areas.idarea = personal.area;";
            rst2 = cont2.solo_select(sqlt2);
            while (rst2.next()) {
                return rst2.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que retorna la descripcion de un tipo de tarea apartir de su id
     *
     * @param id del tipo de tarea
     * @return String que contiene la descripcion
     */
    private String get_descripcion_tarea(String id) {
        try {
            sqlt2 = "select descripcion from tipos_tareas where idtipo_tarea = " + id + ";";
            rst2 = cont2.solo_select(sqlt2);
            while (rst2.next()) {
                return rst2.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que genera la tabla de tareas
     *
     * @param opcion int que indica como se debe cargar la tabla de tareas, "0"
     * para que se carguen las tareas de un proyecto seleccionado del la tabla
     * principal, "1" para que se carguen las tareas asiganadas al usuario, "2"
     * para que se carguen las tareas creadas por el usuario
     */
    private void cargar_tabla_tarea(int opcion) {
        if (opcion == 0) {
            sqlt2 = "select * from tareas where control_version = " + cv + " and estatus != 2 order by idtarea;";
        }
        if (opcion == 1) {
            sqlt2 = "select * from tareas where responsable = " + per + " and estatus != 2 order by idtarea;";
        }
        if (opcion == 2) {
            sqlt2 = "select * from tareas where creador = " + per + " and estatus != 2 order by idtarea;";
        }
        timer2 = new Timer(500, new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {

                if (taimer2) {
                    try {
                        ResultSet res;
                        conexion cone = new conexion();
                        cone.establecer_conexion();
                        Object[] vec = new Object[11];
                        String[] nombres = {"Nro de Tarea", "Creado por", "Asignado a", "Area", "Tarea", "Descripcion de la Tarea", "Observacion", "Fecha Requerida", "Fecha de Creacion", "Tarea Dependiente", "Estatus"};
                        modelo2 = new DefaultTableModel(
                                nombres,
                                0) {
                            boolean[] canEdit = new boolean[]{
                                false, false, false, false, false, false, false, false, false, false, false
                            };

                            @Override
                            public boolean isCellEditable(int rowIndex, int columnIndex) {
                                return canEdit[columnIndex];
                            }
                        };
                        jTable2.setModel(modelo2);
                        DefaultTableCellRenderer tcr = new DefaultTableCellRenderer();
                        tcr.setHorizontalAlignment(SwingConstants.CENTER);
                        for (int i = 0; i < 11; i++) {
                            tcr.setForeground(new java.awt.Color(0, 0, 102));
                            jTable2.getColumnModel().getColumn(i).setCellRenderer(tcr);
                        }
                        jTable2.addMouseListener(new MouseAdapter() {
                            @Override
                            public void mousePressed(MouseEvent e) {
                                ct2 = jTable2.rowAtPoint(e.getPoint());
                                if (ct2 != -1) {
                                    ts = modelo2.getValueAt(ct2, 0).toString();
                                }
                                if (e.toString().substring(e.toString().indexOf("button=") + 7, e.toString().indexOf("button=") + 8).compareTo("1") == 0) {
                                    tareas.setVisible(false);
                                }
                                if (e.toString().substring(e.toString().indexOf("button=") + 7, e.toString().indexOf("button=") + 8).compareTo("3") == 0) {
                                    jTable2.setRowSelectionInterval(jTable2.rowAtPoint(e.getPoint()), jTable2.rowAtPoint(e.getPoint()));
                                    menuTablaTareas.show(e.getComponent(), e.getX(), e.getY()); //... mostramos el menu en la ubicacion del raton
                                }
                            }
                        });
                        jTable2.addKeyListener(new java.awt.event.KeyAdapter() {
                            @Override
                            public void keyReleased(java.awt.event.KeyEvent evt) {
                                if (evt.getKeyCode() == 38 || evt.getKeyCode() == 40) {
                                    /*
                                     * ct2 = jTable2.getSelectedRow(); if (ct2
                                     * != -1) { ts = modelo2.getValueAt(ct2,
                                     * 0).toString(); }
                                     */
                                    tareas.setVisible(false);
                                }
                            }
                        });
                        res = cone.solo_select(sqlt2);
                        while (res.next()) {
                            vec[0] = res.getString(1);
                            vec[1] = get_personal2(res.getString(3));
                            vec[2] = get_personal2(res.getString(4));
                            vec[3] = get_area_del_personal(res.getString(4));
                            vec[4] = get_t_t(res.getString(5));
                            vec[5] = get_descripcion_tarea(res.getString(5));
                            vec[6] = res.getString(6);
                            vec[7] = res.getString(7);
                            vec[8] = res.getString(8);
                            vec[9] = res.getString(10);
                            vec[10] = get_estatus(res.getString(11));
                            modelo2.addRow(vec);
                        }
                        taimer2 = false;
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (SQLException ex) {
                        Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
            }
        });
        timer2.start();
    }

    /**
     * Crea la tabla de macroproyectos existentes.
     *
     * @param tostring Sentencia sql para extraer los macroproyectos existentes
     * segun las exigencias del usuario
     */
    private void cargar_tabla(String tostring) {
        timer = new java.util.Timer(true);
        cm = cantidad_control_versiones();
        if (tostring.compareTo("") == 0) {//select macroproyecto, proyecto_planificacion, proyecto_ingenieria, proyecto_idp, pre_equipamiento, pre_servicio, pre_otros, pre_total from control_versiones where estatus = 1 order by fecha_creacion
            sqlt1 = "SELECT "
                    + "control_versiones.macroproyecto, "
                    + "control_versiones.proyecto_planificacion, "
                    + "control_versiones.proyecto_ingenieria, "
                    + "control_versiones.proyecto_idp, "
                    + "control_versiones.pre_equipamiento, "
                    + "control_versiones.pre_servicio, "
                    + "control_versiones.pre_otros, "
                    + "control_versiones.pre_total "
                    + "FROM "
                    + "public.macroproyectos, "
                    + "public.control_versiones, "
                    + "public.proyectos_idp, "
                    + "public.proyectos_ingenieria, "
                    + "public.proyectos_planificacion "
                    + "WHERE "
                    + "macroproyectos.idmacroproyecto = control_versiones.macroproyecto AND "
                    + "proyectos_idp.idproyecto_idp = control_versiones.proyecto_idp AND "
                    + "proyectos_ingenieria.idproyecto_ingenieria = control_versiones.proyecto_ingenieria AND "
                    + "proyectos_planificacion.idproyecto_planificacion = control_versiones.proyecto_planificacion AND "
                    + "control_versiones.estatus = 1 "
                    + "ORDER BY "
                    + "control_versiones.fecha_creacion ASC;";
        } else {
            sqlt1 = tostring;
        }
        timer.scheduleAtFixedRate(new TimerTask() {
            @Override
            public void run() {
                try {
                    if (taimer) {
                        String mac = "", p_p = "", p_in = "", p_id = "";
                        long pre_equ, pre_ser, pre_otr, pre_tot;
                        ResultSet res, rex;
                        conexion cone = new conexion(), conx = new conexion();
                        cone.establecer_conexion();
                        conx.establecer_conexion();
                        int j = 0, aux;
                        Object[] vec = new Object[63];
                        cargandoDatos.setVisible(true);
                        jProgressBar1.setMinimum(0);
                        jProgressBar1.setMaximum(100);
                        jProgressBar1.setValue(0);
                        jProgressBar1.setStringPainted(true);
                        String[] nombres = {/*
                             * Macroproyecto
                             */"Codigo", "Macroproyecto", "Fecha de Creacion", "Fecha Requerida", "Descripcion", "Creado por",
                            /*
                             * Planificacion
                             */ "Identificador de Proyecto", "Proyecto", "Fecha de Entrega", "Estacion", "Punto de Repeticion", "Proveedor", "Equipo", "Region", "Año de Compra", "Mes Requerido", "Prioridad", "Creador por", "Asignado a", "Radios Gestionables", "Migracion", "Rearreglo", "Avance Planificacion", "Linea Base", "Area (Retraso)", "Tipo de Mci", "Descripcion", "Px",
                            /*
                             * Ingenieria
                             */ "Identificador de Ingenieria", "Mes Planificado", "PEP Proyecto", "DOC Compra Equipo", "DOC Compra Servicio", "Nº Reserva", "Area de Ingenieria", "Creado por", "Asiganado a", "Semana de Publicacion Ingenieria", "Año de Ejecucion", "Semana Planificada de Implementacion", "Semana Planificada de ATP", "Semana Real de ATP", "Semana Real de Gestion", "Semana Real SART", "Semana de Puesta en Servicio", "Semanas Transcurridas", "Avance de Ingenieria", "Area (Retraso)", "Observacion", "Ing",
                            /*
                             * IDP
                             */ "Identificador de IDP", "Creador por", "Asigando a", "Fecha Planificada de PES", "Fecha Real de PES", "Avance de IDP", "Area (Retraso)", "Observacion", "IDP",
                            /*
                             * Presupuesto
                             */ "Presupuesto Equipo", "Presupuesto Servicio", "Presupueso Otros", "Presupuesto Total"};
                        modelo = new DefaultTableModel(
                                nombres,
                                0) {
                            boolean[] canEdit = new boolean[]{
                                false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false
                            };

                            @Override
                            public boolean isCellEditable(int rowIndex, int columnIndex) {
                                return canEdit[columnIndex];
                            }
                        };
                        jTable1.setModel(modelo);
                        DefaultTableCellRenderer tcr = new DefaultTableCellRenderer();
                        tcr.setHorizontalAlignment(SwingConstants.CENTER);
                        for (int i = 0; i < 63; i++) {
                            //tcr.setForeground(new java.awt.Color(0, 102, 0));
                            jTable1.getColumnModel().getColumn(i).setCellRenderer(tcr);
                        }
                        jTable1.addMouseListener(new MouseAdapter() {
                            @Override
                            public void mouseClicked(MouseEvent e) {
                                ct = jTable1.rowAtPoint(e.getPoint());
                                if (e.toString().substring(e.toString().indexOf("button=") + 7, e.toString().indexOf("button=") + 8).compareTo("3") == 0) {
                                    jTable1.setRowSelectionInterval(jTable1.rowAtPoint(e.getPoint()), jTable1.rowAtPoint(e.getPoint()));
                                    menuTablaPrincipal.show(e.getComponent(), e.getX(), e.getY()); //... mostramos el menu en la ubicacion del raton
                                }
                                if (e.toString().substring(e.toString().indexOf("button=") + 7, e.toString().indexOf("button=") + 8).compareTo("1") == 0) {
                                    if (modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                                        cargar_porpa(true);
                                        taimer2 = true;
                                        if (t2) {
                                            timer2.stop();
                                        } else {
                                            t2 = true;
                                        }
                                        cargar_tabla_tarea(0);
                                    } else {
                                        //jTable2.setModel(null);
                                    }
                                }
                            }
                        });
                        res = cone.solo_select(sqlt1);
                        while (res.next()) {
                            for (int i = 0; i < 63; i++) {
                                vec[i] = "";
                            }
                            mac = res.getString(1);
                            p_p = res.getString(2);
                            p_in = res.getString(3);
                            p_id = res.getString(4);
                            pre_equ = Long.parseLong(res.getString(5));
                            pre_ser = Long.parseLong(res.getString(6));
                            pre_otr = Long.parseLong(res.getString(7));
                            pre_tot = Long.parseLong(res.getString(8));
                            sqlt1 = "select * from macroproyectos where idmacroproyecto = '" + mac + "';";
                            rex = conx.solo_select(sqlt1);
                            while (rex.next()) {
                                for (int i = 0; i < 6; i++) {
                                    if (i != 5) {
                                        vec[i] = rex.getString(i + 1);
                                    } else {
                                        vec[i] = get_personal(rex.getString(i + 1));
                                    }
                                }
                            }
                            if (p_p != null) {
                                if (p_p.compareTo("0") != 0) {
                                    sqlt1 = "select * from proyectos_planificacion where idproyecto_planificacion = " + p_p + ";";
                                    rex = conx.solo_select(sqlt1);
                                    while (rex.next()) {//6-28
                                        vec[6] = rex.getString(1);
                                        vec[7] = rex.getString(2);
                                        vec[8] = rex.getString(9);
                                        vec[9] = get_est(rex.getString(13));
                                        vec[10] = get_pre(rex.getString(17));
                                        vec[11] = get_pro(rex.getString(22));
                                        vec[12] = get_equ(rex.getString(23));
                                        vec[13] = get_reg(rex.getString(14));
                                        vec[14] = rex.getString(4);
                                        vec[15] = rex.getString(3);
                                        vec[16] = get_pri(rex.getString(15));
                                        vec[17] = get_personal(rex.getString(18));
                                        vec[18] = get_personal(rex.getString(19));
                                        vec[19] = get_rge(rex.getString(21));
                                        vec[20] = "No";
                                        if (rex.getString(5) != null) {
                                            if (rex.getString(5).compareTo("") != 0) {
                                                vec[20] = rex.getString(5);
                                            }
                                        }
                                        vec[21] = "No";
                                        if (rex.getString(6) != null) {
                                            if (rex.getString(6).compareTo("") != 0) {
                                                vec[21] = rex.getString(6);
                                            }
                                        }
                                        vec[22] = rex.getString(11) + " %";
                                        vec[23] = rex.getString(8);
                                        vec[24] = get_area(rex.getString(16));
                                        vec[25] = get_tmc(rex.getString(20));
                                        vec[26] = rex.getString(7);
                                        vec[27] = rex.getString(12);
                                    }
                                }
                            }
                            if (p_in != null) {
                                if (p_in.compareTo("0") != 0) {
                                    sqlt1 = "select * from proyectos_ingenieria where idproyecto_ingenieria = " + p_in + ";";
                                    rex = conx.solo_select(sqlt1);
                                    while (rex.next()) {
                                        for (int i = 0; i < 22; i++) {
                                            vec[i + 28] = rex.getString(i + 1);
                                            if (i == 6) {
                                                vec[i + 28] = get_area(rex.getString(i + 1));
                                            }
                                            if (i == 7) {
                                                vec[i + 28] = get_personal(rex.getString(i + 1));
                                            }
                                            if (i == 8) {
                                                vec[i + 28] = get_personal(rex.getString(i + 1));
                                            }
                                            if (i == 9) {
                                                sql = "select extract (week from ( "
                                                        + "SELECT sem_publicacion "
                                                        + "FROM proyectos_ingenieria "
                                                        + "WHERE idproyecto_ingenieria = " + rex.getString(1) + "))";
                                                rs = con.solo_select(sql);
                                                while (rs.next()) {
                                                    vec[i + 28] = rs.getString(1);
                                                }
                                            }
                                            if (i == 11) {
                                                sql = "select extract (week from ( "
                                                        + "SELECT sem_plan_imp "
                                                        + "FROM proyectos_ingenieria "
                                                        + "WHERE idproyecto_ingenieria = " + rex.getString(1) + "))";
                                                rs = con.solo_select(sql);
                                                while (rs.next()) {
                                                    vec[i + 28] = rs.getString(1);
                                                }
                                            }
                                            if (i == 12) {
                                                sql = "select extract (week from ( "
                                                        + "SELECT sem_plan_atp "
                                                        + "FROM proyectos_ingenieria "
                                                        + "WHERE idproyecto_ingenieria = " + rex.getString(1) + "))";
                                                rs = con.solo_select(sql);
                                                while (rs.next()) {
                                                    vec[i + 28] = rs.getString(1);
                                                }
                                            }
                                            if (i == 13) {
                                                sql = "select extract (week from ( "
                                                        + "SELECT sem_real_atp "
                                                        + "FROM proyectos_ingenieria "
                                                        + "WHERE idproyecto_ingenieria = " + rex.getString(1) + "))";
                                                rs = con.solo_select(sql);
                                                while (rs.next()) {
                                                    vec[i + 28] = rs.getString(1);
                                                }
                                            }
                                            if (i == 14) {
                                                sql = "select extract (week from ( "
                                                        + "SELECT sem_real_gestion "
                                                        + "FROM proyectos_ingenieria "
                                                        + "WHERE idproyecto_ingenieria = " + rex.getString(1) + "))";
                                                rs = con.solo_select(sql);
                                                while (rs.next()) {
                                                    vec[i + 28] = rs.getString(1);
                                                }
                                            }
                                            if (i == 15) {
                                                sql = "select extract (week from ( "
                                                        + "SELECT sem_real_sart "
                                                        + "FROM proyectos_ingenieria "
                                                        + "WHERE idproyecto_ingenieria = " + rex.getString(1) + "))";
                                                rs = con.solo_select(sql);
                                                while (rs.next()) {
                                                    vec[i + 28] = rs.getString(1);
                                                }
                                            }
                                            if (i == 16) {
                                                sql = "select extract (week from ( "
                                                        + "SELECT sem_pes "
                                                        + "FROM proyectos_ingenieria "
                                                        + "WHERE idproyecto_ingenieria = " + rex.getString(1) + "))";
                                                rs = con.solo_select(sql);
                                                while (rs.next()) {
                                                    vec[i + 28] = rs.getString(1);
                                                }
                                            }
                                            if (i == 18) {
                                                vec[i + 28] = rex.getString(i + 1) + " %";
                                            }
                                            if (i == 19) {
                                                vec[i + 28] = get_area(rex.getString(i + 1));
                                            }
                                        }
                                    }
                                }
                            }
                            if (p_id != null) {
                                if (p_id.compareTo("0") != 0) {
                                    sqlt1 = "select * from proyectos_idp where idproyecto_idp = " + p_id + ";";
                                    rex = conx.solo_select(sqlt1);
                                    while (rex.next()) {
                                        for (int i = 0; i < 9; i++) {
                                            vec[i + 50] = rex.getString(i + 1);
                                            if (i == 1) {
                                                vec[i + 50] = get_personal(rex.getString(i + 1));
                                            }
                                            if (i == 2) {
                                                vec[i + 50] = get_personal(rex.getString(i + 1));
                                            }
                                            if (i == 5) {
                                                vec[i + 50] = rex.getString(i + 1) + " %";
                                            }
                                            if (i == 6) {
                                                vec[i + 50] = get_area(rex.getString(i + 1));
                                            }
                                        }
                                    }
                                }
                            }
                            vec[59] = String.valueOf(pre_equ);
                            vec[60] = String.valueOf(pre_ser);
                            vec[61] = String.valueOf(pre_otr);
                            vec[62] = String.valueOf(pre_tot);
                            j++;
                            aux = (j * 100) / cm;
                            jProgressBar1.setValue(aux);
                            modelo.addRow(vec);
                        }
                        cargandoDatos.setVisible(false);
                        taimer = false;
                        cone.terminar_conexion();
                        conx.terminar_conexion();
                    }
                } catch (ClassNotFoundException ex) {
                    Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }, 0, 1000);
    }

    /**
     * Añade una fila a la tabla de control de versiones
     *
     * @param aux String en forma de sentencia sql del que se extraen los datos
     * necesatios para crear la nueva fila
     */
    private void crear_row(String aux) {
        int pos, i = 0;
        String[] vec = new String[63];
        StringTokenizer token;
        for (int j = 0; j < 63; j++) {
            vec[j] = "";
        }
        pos = aux.indexOf("VALUES (") + 8;
        aux = aux.substring(pos, aux.length());
        token = new StringTokenizer(aux, ",");
        while (token.hasMoreTokens()) {
            if (i < 5) {
                vec[i] = token.nextToken();
                vec[i] = vec[i].substring(1, vec[i].length() - 1);
            } else {
                vec[i] = token.nextToken();
                vec[i] = get_personal(String.valueOf(per));
            }
            i++;
            if (i >= 6) {
                break;
            }
        }
        vec[59] = "0";
        vec[60] = "0";
        vec[61] = "0";
        vec[62] = "0";
        modelo.addRow(vec);
    }

    /**
     * Devuelve el nombre y apellido del personal que esta registrado en la base
     * de datos.
     *
     * @param aux String que contiene el id del personal a buscar
     * @return Una String donde se encuentra concatenado el nombre y apellido en
     * caso de encontrarlo, null en caso de no encontrarlo
     */
    private String get_personal(String aux) {
        try {
            sqlt1 = "select nombre, apellido from personal where idpersonal = " + aux + ";";
            rst1 = cont1.solo_select(sqlt1);
            while (rst1.next()) {
                aux = rst1.getString(1) + " " + rst1.getString(2);
            }
            return aux;
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Devuelve el nombre y apellido del personal que esta registrado en la base
     * de datos.
     *
     * @param aux String que contiene el id del personal a buscar
     * @return Una String donde se encuentra concatenado el nombre y apellido en
     * caso de encontrarlo, null en caso de no encontrarlo
     */
    private String get_personal2(String aux) {
        try {
            sqlt2 = "select nombre, apellido from personal where idpersonal = " + aux + ";";
            rst2 = cont2.solo_select(sqlt2);
            while (rst2.next()) {
                aux = rst2.getString(1) + " " + rst2.getString(2);
            }
            return aux;
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con las opciones de tipos de
     * bugs existentes
     *
     * @return DefaultComboboxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_t_b() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from tipos_bugs;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select tipo from tipos_bugs order by tipo;";
            rs = con.solo_select(sql);
            rr[0] = "Tipo de Error";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con los contadores de
     * macroproyectos existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_cm() {
        try {
            String aux = null;
            String[] rr;
            int cc;
            sql = "select max(idcontador_macroproyectos) from contador_macroproyectos;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = rs.getString(1);
            }
            cc = Integer.parseInt(aux);
            cc += 1;
            rr = new String[cc];
            rr[0] = "CM";
            for (int i = 1; i < cc; i++) {
                rr[i] = i + "";
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con las tecnologias
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_tec() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from tecnologias;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select nombre from tecnologias order by nombre;";
            rs = con.solo_select(sql);
            rr[0] = "Tecnologia";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con las regiones existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_reg() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from regiones;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select nombre from regiones order by nombre;";
            rs = con.solo_select(sql);
            rr[0] = "Region";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que devuelve un DefaultComboBoxModel con los tipos de trabajo
     * existentes
     *
     * @return DefaultComboBoxModel
     */
    private javax.swing.DefaultComboBoxModel cargar_tipos_t() {
        try {
            String[] rr;
            int aux = 0;
            sql = "select count(*) from tipos_trabajos;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = Integer.parseInt(rs.getString(1));
            }
            rr = new String[aux + 1];
            sql = "select tipo from tipos_trabajos order by tipo;";
            rs = con.solo_select(sql);
            rr[0] = "Tipo de Trabajo";
            aux = 1;
            while (rs.next()) {
                rr[aux] = rs.getString(1);
                aux++;
            }
            return new javax.swing.DefaultComboBoxModel(rr);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    /**
     * Funcion que crea un joptionpane para cerrar la sesion
     */
    private void salir_sesion() {
        if (JOptionPane.showConfirmDialog(null, "Esta seguro que desea cerrar su sesion", "Cierre de Sesion", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) == 0) {
            bitacora(2);
            timer.cancel();
            taimer = true;
            pro_pla = 0;
            pro_ing = 0;
            pro_idp = 0;
            per = 0;
            cv = 0;
            macro = "";
            ajustar_resolucion(0, 0);
            tareas.setVisible(false);
            ventanaPrincipal.setVisible(false);
            presupuesto.setVisible(false);
            reporteErrores.setVisible(false);
            creditos.setVisible(false);
            jTextField1.setText("Login");
            jPasswordField1.setText("password");
            jInternalFrame1.setVisible(true);
            setVisible(true);
        }
    }

    /**
     * Funcion que realiza los procesos necesarios para la salida del sistema
     */
    private void salir_tbu() {
        if (JOptionPane.showConfirmDialog(null, "Esta seguro que desea salir del sistema", "Salir del Sistema", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) == 0) {
            try {
                bitacora(2);
                con.terminar_conexion();
                cont1.terminar_conexion();
                cont2.terminar_conexion();
                System.exit(0);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    /**
     * Boton "Inicio de Sesion", incluido en el jInternalFrame1
     */
    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
        // TODO add your handling code here:
        ingresar_sistema();
    }//GEN-LAST:event_jButton1MouseClicked

    private void sesion_iniciada() {
        try {
            int aux = 0;
            sql = "select count(*) from software_version "
                    + "where idsoftware_version = (select max(idsoftware_version) from software_version) "
                    + "and nombre_version = '" + version + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                aux = rs.getInt(1);
            }
            if (aux == 1) {
                bitacora(1);
                JOptionPane.showMessageDialog(null, "Bienvenido al sistema del TBU", "Entrar al Sistema", JOptionPane.INFORMATION_MESSAGE);
                jInternalFrame1.setVisible(false);
                setVisible(false);
                ventanaPrincipal.setVisible(true);
                cargar_porpa();
                cargar_crear_macro();
                plani();
                ingen();
                idp();
                busqueda();
                cargar_tabla(""); //Esta vez no lleva las lineas anteriores porque es la primera vez que se llama a la funcion cargar_tabla
            } else {
                JOptionPane.showMessageDialog(null, "Existe una nueva version del software, la puede descargar de la pagina que se abrira a continuacion", "Entrar al Sistema", JOptionPane.INFORMATION_MESSAGE);
                java.awt.Desktop desktop = java.awt.Desktop.getDesktop();
                try {
                    desktop.browse(new URI("http://goo.gl/nhnx7"));

                } catch (IOException ex) {
                    Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                } catch (URISyntaxException ex) {
                    Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                }
                System.exit(0);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /**
     * Valida el ingreso de usuarios al sistema tbu con la base de datos
     */
    private void ingresar_sistema() {
        boolean r = true;
        if (jTextField1.getText().compareTo("Login") == 0 || jPasswordField1.getText().compareTo("password") == 0) {
            JOptionPane.showMessageDialog(null, "Debe introducir su login y password", "Inicio de Sesion", JOptionPane.ERROR_MESSAGE);
            r = !r;
        }
        if ((jTextField1.getText().compareTo("") == 0 || jPasswordField1.getText().compareTo("") == 0) && r) {
            JOptionPane.showMessageDialog(null, "Los campos no deben quedar vacios", "Inicio de Sesion", JOptionPane.ERROR_MESSAGE);
            r = !r;
        }
        if (r) {
            String aux;
            aux = emd5.convertir_md5(jPasswordField1.getText());
            try {
                rs = con.solo_select("select idpersonal, tipo_usuario, area from personal where login = '" + jTextField1.getText() + "' and password = '" + aux + "';");
                if (rs.next()) {
                    aux = rs.getString(1);
                    tu = rs.getShort(2);
                    ar = rs.getShort(3);
                    sql = "select * from bitacora where personal = " + Integer.parseInt(aux) + " order by idbitacora desc;";
                    rs = con.solo_select(sql);
                    if (rs.next()) {
                        if (rs.getString(3).compareTo("2") == 0) {
                            per = Integer.parseInt(aux);
                            sesion_iniciada();
                        } else {
                            JOptionPane.showMessageDialog(null, "Su sesion ya se encuentra abierta en la siguiente ip: " + rs.getString(6) + " desde el " + rs.getString(4) + " a las " + rs.getString(5) + ", si sospecha de alguna irregularidad por favor informe inmediatamente a los administradores del sistema", "Sesion Abierta", JOptionPane.WARNING_MESSAGE);
                        }
                    } else {
                        per = Integer.parseInt(aux);
                        sesion_iniciada();
                    }
                } else {
                    JOptionPane.showMessageDialog(null, "Login o password incorrecto", "Entrar al Sistema", JOptionPane.ERROR_MESSAGE);
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    /**
     * Boton "Salir", incluido en el jInternalFrame1
     */
    private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseClicked
        // TODO add your handling code here:
        salir_tbu();
    }//GEN-LAST:event_jButton2MouseClicked

    /**
     * Boton "Recuperar Contraseña", incluido en el jInternalFrame1
     */
    private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton3MouseClicked
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(null, "Debe contactar con un administrador del sistema para recuperar su clave", "Recuperación de Contraseña", JOptionPane.INFORMATION_MESSAGE);
    }//GEN-LAST:event_jButton3MouseClicked

    private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            ingresar_sistema();
        }
    }//GEN-LAST:event_jTextField1KeyPressed

    private void jPasswordField1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPasswordField1KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            ingresar_sistema();
        }
    }//GEN-LAST:event_jPasswordField1KeyPressed

    private void jPasswordField1FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jPasswordField1FocusGained
        // TODO add your handling code here:
        if (jPasswordField1.getText().compareTo("password") == 0) {
            jPasswordField1.setText("");
        }
        jPasswordField1.setSelectionStart(0);
        jPasswordField1.setSelectionEnd(jPasswordField1.getText().length());
    }//GEN-LAST:event_jPasswordField1FocusGained

    private void jTextField1FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField1FocusGained
        // TODO add your handling code here:
        if (jTextField1.getText().compareTo("Login") == 0) {
            jTextField1.setText("");
        }
        jTextField1.setSelectionStart(0);
        jTextField1.setSelectionEnd(jTextField1.getText().length());
    }//GEN-LAST:event_jTextField1FocusGained

    private void salirSistemaMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_salirSistemaMousePressed
        // TODO add your handling code here:
        salir_tbu();
    }//GEN-LAST:event_salirSistemaMousePressed

    /**
     * Funcion que devuelve a los valores por defecto los parametro de un
     * macroproyecto
     */
    private void cargar_crear_macro() {
        jButton8.setEnabled(true);
        jButton30.setEnabled(false);
        jComboBox10.setEnabled(false);
        jComboBox11.setEnabled(false);
        jComboBox12.setEnabled(false);
        jComboBox13.setEnabled(false);
        jComboBox7.setEnabled(false);
        jComboBox8.setEnabled(false);
        jComboBox9.setEnabled(false);
        jTextPane1.setText("Ingrese la descripcion del macroproyecto");
        jComboBox10.setSelectedItem(anno_actual());
        jComboBox11.setSelectedItem("Region");
        jComboBox12.setSelectedItem("Tecnologia");
        jComboBox13.setSelectedItem("CM");
        jComboBox1.setSelectedItem("Tipo de Trabajo");
        jComboBox4.setSelectedItem(String.valueOf(Integer.parseInt(dia_actual())));
        jComboBox5.setSelectedItem(mes_actual());
        funciones_macrop();
    }

    /**
     * Funcion que se encarga de inicializar las opciones de los macroproyectos
     */
    private void funciones_macrop() {
        jComboBox13.setModel(cargar_cm());
        jComboBox12.setModel(cargar_tec());
        jComboBox2.setModel(jComboBox12.getModel());
        jComboBox11.setModel(cargar_reg());
        jComboBox3.setModel(jComboBox11.getModel());
        jComboBox1.setModel(cargar_tipos_t());
    }

    private void calcular_dias4() {
        int year = 0, month = 0, day = 0;
        String t;
        year = Integer.parseInt(jComboBox50.getSelectedItem().toString());
        day = Integer.parseInt(jComboBox48.getSelectedItem().toString());
        month = obtener_mes_int(jComboBox49.getSelectedItem().toString());
        if (day > 28) {
            if ((month == 4 || month == 6 || month == 9 || month == 11) && day > 30) {
                jComboBox48.setSelectedItem("30");
                day = 30;
            }
            if (month == 2) {
                if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
                    jComboBox48.setSelectedItem("29");
                    day = 29;
                } else {
                    jComboBox48.setSelectedItem("28");
                    day = 28;
                }
            }
        }
        cal.set(year, (month - 1), day);
        t = cal.getTime() + "";
        StringTokenizer token = new StringTokenizer(t, " ");
        jLabel92.setText(dia_semana(token.nextToken()));
    }

    private void calcular_dias5() {
        int year = 0, month = 0, day = 0;
        String t;
        year = Integer.parseInt(jComboBox58.getSelectedItem().toString());
        day = Integer.parseInt(jComboBox56.getSelectedItem().toString());
        month = obtener_mes_int(jComboBox57.getSelectedItem().toString());
        if (day > 28) {
            if ((month == 4 || month == 6 || month == 9 || month == 11) && day > 30) {
                jComboBox56.setSelectedItem("30");
                day = 30;
            }
            if (month == 2) {
                if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
                    jComboBox56.setSelectedItem("29");
                    day = 29;
                } else {
                    jComboBox56.setSelectedItem("28");
                    day = 28;
                }
            }
        }
        cal.set(year, (month - 1), day);
        t = cal.getTime() + "";
        StringTokenizer token = new StringTokenizer(t, " ");
        jLabel28.setText(dia_semana(token.nextToken()));
    }

    private int diferencia_fechas() {
        if (jComboBox45.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox46.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox47.getSelectedItem().toString().compareTo("Año") != 0 && jComboBox48.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox49.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox50.getSelectedItem().toString().compareTo("Año") != 0) {
            if (Integer.parseInt(jComboBox50.getSelectedItem().toString()) > Integer.parseInt(jComboBox47.getSelectedItem().toString())) {
                return 1;
            } else {
                GregorianCalendar t1 = new GregorianCalendar(Integer.parseInt(jComboBox47.getSelectedItem().toString()), obtener_mes_int(jComboBox46.getSelectedItem().toString()) - 1, Integer.parseInt(jComboBox45.getSelectedItem().toString()));
                GregorianCalendar t22 = new GregorianCalendar(Integer.parseInt(jComboBox50.getSelectedItem().toString()), obtener_mes_int(jComboBox49.getSelectedItem().toString()) - 1, Integer.parseInt(jComboBox48.getSelectedItem().toString()));
                return t22.get(Calendar.DAY_OF_YEAR) - t1.get(Calendar.DAY_OF_YEAR);
            }
        }
        return -1000;
    }

    /**
     * Funcion que devuelve "true" si la fecha a consultar es mayor a la fecha
     * actual y "false" en caso de ser una fecha menor o no valida
     *
     * @param dia dia de la fecha a consultar
     * @param mes mes de la fecha a consultar
     * @param anno año de la fecha a consultar
     * @return boolean
     */
    private boolean diferencia_fecha_actual(String dia, String mes, String anno) {
        if (dia.compareTo("Dia") != 0 && mes.compareTo("Mes") != 0 && anno.compareTo("Año") != 0) {
            if (Integer.parseInt(anno) > Integer.parseInt(anno_actual())) {
                return true;
            } else {
                GregorianCalendar t1 = new GregorianCalendar(Integer.parseInt(anno), obtener_mes_int(mes) - 1, Integer.parseInt(dia));
                GregorianCalendar tt2 = new GregorianCalendar(Integer.parseInt(anno_actual()), obtener_mes_int(mes_actual()) - 1, Integer.parseInt(dia_actual()));
                if ((t1.get(Calendar.DAY_OF_YEAR) - tt2.get(Calendar.DAY_OF_YEAR)) >= 0) {
                    return true;
                } else {
                    return false;
                }
            }
        }
        return false;
    }

    private void calcular_dias3() {
        int year = 0, month = 0, day = 0;
        String t;
        year = Integer.parseInt(jComboBox47.getSelectedItem().toString());
        day = Integer.parseInt(jComboBox45.getSelectedItem().toString());
        month = obtener_mes_int(jComboBox46.getSelectedItem().toString());
        if (day > 28) {
            if ((month == 4 || month == 6 || month == 9 || month == 11) && day > 30) {
                jComboBox45.setSelectedItem("30");
                day = 30;
            }
            if (month == 2) {
                if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
                    jComboBox45.setSelectedItem("29");
                    day = 29;
                } else {
                    jComboBox45.setSelectedItem("28");
                    day = 28;
                }
            }
        }
        cal.set(year, (month - 1), day);
        t = cal.getTime() + "";
        StringTokenizer token = new StringTokenizer(t, " ");
        jLabel91.setText(dia_semana(token.nextToken()));
    }

    /**
     * Funcion que transforma el dia de la semana de ingles a español
     *
     * @param aux String que contiene las primeras tres letras del dia de la
     * semana en ingles, ejemplo "Mon"
     * @return return el nombre completo del dia de la semana en español,
     * ejemplo "Lunes"
     */
    private String dia_semana(String aux) {
        if (aux.compareTo("Mon") == 0) {
            return "Lunes";
        }
        if (aux.compareTo("Tue") == 0) {
            return "Martes";
        }
        if (aux.compareTo("Wed") == 0) {
            return "Miercoles";
        }
        if (aux.compareTo("Thu") == 0) {
            return "Jueves";
        }
        if (aux.compareTo("Fri") == 0) {
            return "Viernes";
        }
        if (aux.compareTo("Sat") == 0) {
            return "Sabado";
        }
        if (aux.compareTo("Sun") == 0) {
            return "Domingo";
        }
        return null;
    }

    private void calcular_dias() {
        int year = 0, month = 0, day = 0;
        String t;
        year = Integer.parseInt(jComboBox6.getSelectedItem().toString());
        day = Integer.parseInt(jComboBox4.getSelectedItem().toString());
        month = obtener_mes_int(jComboBox5.getSelectedItem().toString());
        if (day > 28) {
            if ((month == 4 || month == 6 || month == 9 || month == 11) && day > 30) {
                jComboBox4.setSelectedItem("30");
                day = 30;
            }
            if (month == 2) {
                if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
                    jComboBox4.setSelectedItem("29");
                    day = 29;
                } else {
                    jComboBox4.setSelectedItem("28");
                    day = 28;
                }
            }
        }
        cal.set(year, (month - 1), day);
        t = cal.getTime() + "";
        StringTokenizer token = new StringTokenizer(t, " ");
        jLabel10.setText(dia_semana(token.nextToken()));
    }

    /**
     * Funcion que crea macroproyectos nuevos
     */
    private void crear_macro() {
        if (jButton8.isEnabled()) {
            boolean h1, h2, h3, h4, h5, h6;
            h1 = jComboBox1.getSelectedItem().toString().compareTo("Tipo de Trabajo") != 0;
            h2 = jComboBox2.getSelectedItem().toString().compareTo("Tecnologia") != 0;
            h3 = jComboBox3.getSelectedItem().toString().compareTo("Region") != 0;
            h4 = jComboBox4.getSelectedItem().toString().compareTo("Dia") != 0;
            h5 = jComboBox5.getSelectedItem().toString().compareTo("Mes") != 0;
            h6 = jComboBox6.getSelectedItem().toString().compareTo("Año") != 0;
            if (diferencia_fecha_actual(jComboBox4.getSelectedItem().toString(), jComboBox5.getSelectedItem().toString(), jComboBox6.getSelectedItem().toString())) {
                if (h1 && h2 && h3 && h4 && h5 && h6) {
                    try {
                        String name, aux = "";
                        if (jTextPane1.getText().compareTo("Ingrese la descripcion del macroproyecto") == 0) {
                            jTextPane1.setText("No existe una descripcion");
                        }
                        sql = "select max(idcontador_macroproyectos) from contador_macroproyectos;";
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            aux = rs.getString(1);
                        }
                        auxi = Integer.parseInt(aux) + 1;
                        macro = jComboBox6.getSelectedItem().toString() + "_" + jComboBox3.getSelectedItem().toString() + "_" + jComboBox2.getSelectedItem().toString() + "_" + auxi;//año_region_tecnologia_autoIncrimentado
                        name = jComboBox1.getSelectedItem().toString() + "_" + jComboBox2.getSelectedItem().toString() + "_" + jComboBox3.getSelectedItem().toString();
                        sql = "INSERT INTO macroproyectos VALUES ('" + macro + "','" + name + "','" + fecha_actual() + "','" + jComboBox6.getSelectedItem().toString() + "-" + obtener_mes_int(jComboBox5.getSelectedItem().toString()) + "-" + jComboBox4.getSelectedItem().toString() + "','" + jTextPane1.getText() + "'," + per + ",'" + hora_actual() + "');";
                        sqli = sql;
                        con.solo_insert(sql);
                        aux = hora_actual();
                        sql = "insert into control_versiones (fecha_creacion,hora_creacion,macroproyecto,estatus) values ('" + fecha_actual() + "','" + aux + "','" + macro + "',1);";
                        con.solo_insert(sql);
                        sql = "update contador_macroproyectos set idcontador_macroproyectos = '" + (auxi) + "' where idcontador_macroproyectos = '" + (auxi - 1) + "';";
                        con.solo_update(sql);
                        crear_row(sqli);
                        macro_proy();
                    } catch (SQLException ex) {
                        Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                    }
                } else {
                    JOptionPane.showMessageDialog(null, "Debe llenar todos los campos Obligatorios", "Crear Macroproyecto", JOptionPane.ERROR_MESSAGE);
                }
            } else {
                JOptionPane.showMessageDialog(null, "La fecha requerida no puede ser menor a la fecha actual", "Crear Macroproyecto", JOptionPane.INFORMATION_MESSAGE);
            }
        }
    }

    /**
     * Funcion que retorna la fecha actual del sistema
     *
     * @return String que contiene la fecha actual del sistema
     */
    private String fecha_actual() {
        String month;
        month = String.valueOf(obtener_mes_int(mes_actual()));
        if (month.length() < 2) {
            month = "0" + month;
        }
        return anno_actual() + "-" + month + "-" + dia_actual();
    }

    /**
     * Funcion que realiza un llamado a la funcion salir_tbu()
     *
     * @param evt
     */
    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        // TODO add your handling code here:
        salir_tbu();
    }//GEN-LAST:event_formWindowClosing

    private void ventanaPrincipalWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_ventanaPrincipalWindowClosing
        // TODO add your handling code here:
        salir_tbu();
    }//GEN-LAST:event_ventanaPrincipalWindowClosing

    private void jTextField1FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField1FocusLost
        // TODO add your handling code here:
        jTextField1.setText(quitaEspacios(jTextField1.getText()));
        if (jTextField1.getText().compareTo("") == 0) {
            jTextField1.setText("Login");
        }
    }//GEN-LAST:event_jTextField1FocusLost

    /**
     * Funcion que retorna la cantidad de control de versiones
     *
     * @return
     */
    private int cantidad_control_versiones() {
        try {
            sql = "select count(*) from control_versiones where estatus = 1;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return Integer.parseInt(rs.getString(1));
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return 0;
    }

    private void cerrarSesionMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cerrarSesionMousePressed
        // TODO add your handling code here:
        salir_sesion();
    }//GEN-LAST:event_cerrarSesionMousePressed

    private void jButton1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton1KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            ingresar_sistema();
        }
    }//GEN-LAST:event_jButton1KeyPressed

    private void jButton2KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton2KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            salir_tbu();
        }
    }//GEN-LAST:event_jButton2KeyPressed

    private void calcular_dias2() {
        int year = 0, month = 0, day = 0;
        year = Integer.parseInt(jComboBox9.getSelectedItem().toString());
        day = Integer.parseInt(jComboBox7.getSelectedItem().toString());
        month = obtener_mes_int(jComboBox8.getSelectedItem().toString());
        if (day > 28) {
            if ((month == 4 || month == 6 || month == 9 || month == 11) && day > 30) {
                jComboBox7.setSelectedItem("30");
            }
            if (month == 2) {
                if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
                    jComboBox7.setSelectedItem("29");
                } else {
                    jComboBox7.setSelectedItem("28");
                }
            }
        }
    }

    /**
     * Funcion que realizo el proceso a seguir cuando un proyecto no esta activo
     */
    private void proyecto_inactivo() {
        JOptionPane.showMessageDialog(null, "El proyecto al cual usted intenta acceder puede que ya no exista o se halla modificado, se procedera a recargar la tabla de proyectos", "Error", JOptionPane.ERROR_MESSAGE);
        cargar_crear_macro();
        plani();
        ingen();
        idp();
        macro = "";
        pro_pla = 0;
        pro_ing = 0;
        pro_idp = 0;
        cv = 0;
        cargar_porpa();
        tareas.setVisible(false);
        presupuesto.setVisible(false);
        reporteErrores.setVisible(false);
        timer.cancel();
        taimer = true;
        cargar_tabla("");
    }

    /**
     * Funcion que retorna "true" si el proyecto existe y se encuentra activo en
     * la base de datos, "false" en caso que no
     *
     * @return boolean que indica si el proyecto existe y se encuentra activo
     */
    private boolean proyecto_activo() {
        try {
            macro = modelo.getValueAt(ct, 0).toString();
            pro_pla = 0;
            if (modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                pro_pla = Integer.parseInt(modelo.getValueAt(ct, 6).toString());
            }
            pro_ing = 0;
            if (modelo.getValueAt(ct, 28).toString().compareTo("") != 0) {
                pro_ing = Integer.parseInt(modelo.getValueAt(ct, 28).toString());
            }
            pro_idp = 0;
            if (modelo.getValueAt(ct, 50).toString().compareTo("") != 0) {
                pro_idp = Integer.parseInt(modelo.getValueAt(ct, 50).toString());
            }
            sql = "select count(*) from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + pro_idp + " and pre_equipamiento = " + modelo.getValueAt(ct, 59) + " and pre_servicio = " + modelo.getValueAt(ct, 60) + " and pre_otros = " + modelo.getValueAt(ct, 61) + " and pre_total = " + modelo.getValueAt(ct, 62) + " and estatus = 1;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                if (Long.parseLong(rs.getString(1)) > 0) {
                    return true;
                }
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return false;
    }

    /**
     * Funcion que modifica un macroproyecto del boton "Modificar", incluido en
     * el jInternalFrame3
     */
    private void boton_30() {
        boolean[] h = new boolean[6];
        h[0] = jComboBox10.getSelectedItem().toString().compareTo("Año") != 0;
        h[1] = jComboBox11.getSelectedItem().toString().compareTo("Region") != 0;
        h[2] = jComboBox12.getSelectedItem().toString().compareTo("Tecnologia") != 0;
        h[3] = jComboBox1.getSelectedItem().toString().compareTo("Tipo de Trabajo") != 0;
        h[4] = jComboBox4.getSelectedItem().toString().compareTo("Dia") != 0;
        h[5] = jComboBox5.getSelectedItem().toString().compareTo("Mes") != 0;
        if (h[0] && h[1] && h[2] && h[3] && h[4] && h[5]) {
            try {
                String auxx = "", asql, amacro;
                conexion conx = new conexion();
                ResultSet resx;
                conx.establecer_conexion();
                macro = modelo.getValueAt(ct, 0).toString();
                sql = "SELECT max(idcontador_macroproyectos) FROM contador_macroproyectos;";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    auxx = (Integer.parseInt(rs.getString(1)) + 1) + "";
                }
                sql = "update contador_macroproyectos set idcontador_macroproyectos = " + auxx + " where idcontador_macroproyectos = " + (Integer.parseInt(auxx) - 1) + "";
                con.solo_update(sql);
                amacro = jComboBox10.getSelectedItem() + "_" + jComboBox11.getSelectedItem() + "_" + jComboBox12.getSelectedItem() + "_" + auxx;
                if (jTextPane1.getText().compareTo("Ingrese la descripcion del macroproyecto") == 0 || jTextPane1.getText().compareTo("") == 0) {
                    jTextPane1.setText("No existe una descripcion");
                }
                sql = "insert into macroproyectos values ('" + amacro + "','" + jComboBox1.getSelectedItem() + "_" + jComboBox2.getSelectedItem() + "_" + jComboBox3.getSelectedItem() + "','" + fecha_actual() + "','" + jComboBox6.getSelectedItem() + "-" + obtener_mes_int(jComboBox5.getSelectedItem().toString()) + "-" + jComboBox4.getSelectedItem() + "','" + jTextPane1.getText() + "'," + per + ",'" + hora_actual() + "');";
                con.solo_insert(sql);
                sql = "select proyecto_planificacion, proyecto_ingenieria, proyecto_idp from control_versiones where macroproyecto = '" + macro + "' and estatus = 1;";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    asql = "select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + rs.getString(1) + " and proyecto_ingenieria = " + rs.getString(2) + " and proyecto_idp = " + rs.getString(3) + ";";
                    resx = conx.solo_select(asql);
                    while (resx.next()) {
                        cv = Integer.parseInt(resx.getString(1));
                    }
                    asql = "insert into control_versiones (fecha_creacion, hora_creacion, macroproyecto, control_version, estatus, proyecto_planificacion, proyecto_ingenieria, proyecto_idp)"
                            + " values ('" + fecha_actual() + "', '" + hora_actual() + "', '" + amacro + "', "
                            + "" + cv + ", "
                            + "1," + rs.getString(1) + ", " + rs.getString(2) + ", " + rs.getString(3) + ");";
                    conx.solo_insert(asql);
                    asql = "update control_versiones set estatus = 3 where macroproyecto = '" + macro + "' and proyecto_planificacion = " + rs.getString(1) + " and proyecto_ingenieria = " + rs.getString(2) + " and proyecto_idp = " + rs.getString(3) + ";";
                    conx.solo_update(asql);
                    asql = "update tareas set control_version = "
                            + "(select idcontrol_version from control_versiones where macroproyecto = '" + amacro + "' and proyecto_planificacion = " + rs.getString(1) + " and proyecto_ingenieria = " + rs.getString(2) + " and proyecto_idp = " + rs.getString(3) + ") "
                            + "where control_version = " + cv + ";";
                    conx.solo_update(asql);
                    asql = "update control_versiones set pre_equipamiento = "
                            + "(select pre_equipamiento from control_versiones where idcontrol_version = " + cv + "), "
                            + "pre_servicio = (select pre_servicio from control_versiones where idcontrol_version = " + cv + "), "
                            + "pre_otros = (select pre_otros from control_versiones where idcontrol_version = " + cv + "), "
                            + "pre_total = (select pre_total from control_versiones where idcontrol_version = " + cv + "), "
                            + "personal_pre = (select personal_pre from control_versiones where idcontrol_version = " + cv + ") "
                            + "where idcontrol_version = (select idcontrol_version from control_versiones where macroproyecto = '" + amacro + "' and proyecto_planificacion = " + rs.getString(1) + " and proyecto_ingenieria = " + rs.getString(2) + " and proyecto_idp = " + rs.getString(3) + ");";
                    conx.solo_update(asql);
                }
                for (int i = 0; i < modelo.getRowCount(); i++) {
                    if (modelo.getValueAt(i, 0).toString().compareTo(macro) == 0) {
                        modelo.setValueAt(amacro, i, 0);
                        modelo.setValueAt(jComboBox1.getSelectedItem() + "_" + jComboBox2.getSelectedItem() + "_" + jComboBox3.getSelectedItem(), i, 1);
                        modelo.setValueAt(fecha_actual(), i, 2);
                        modelo.setValueAt(jComboBox6.getSelectedItem() + "-" + obtener_mes_int(jComboBox5.getSelectedItem().toString()) + "-" + jComboBox4.getSelectedItem(), i, 3);
                        modelo.setValueAt(jTextPane1.getText(), i, 4);
                        modelo.setValueAt(get_personal(String.valueOf(per)), i, 5);
                    }
                }
                JOptionPane.showMessageDialog(null, "El Macroproyecto ha sido modificado", "Modificacion de Macroproyecto", JOptionPane.INFORMATION_MESSAGE);
                cargar_crear_macro();
                macro = "";
                pro_pla = 0;
                pro_ing = 0;
                pro_idp = 0;
                cv = 0;
                cargar_porpa();
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            JOptionPane.showMessageDialog(null, "Debe llenar todos los campos Obligatorios", "Error", JOptionPane.ERROR_MESSAGE);
        }
    }

    /**
     * Funcion que retorna el numero del mes que es enviado por parametro
     *
     * @param aux String que contiene las tres primera letras de un mes, ejemplo
     * aux = "Ene"
     * @return la transformacion del mes en numero, ejemplo aux = "Ene" retorna
     * 1
     */
    private int obtener_mes_int(String aux) {
        if (aux.compareTo("Ene") == 0) {
            return 1;
        }
        if (aux.compareTo("Feb") == 0) {
            return 2;
        }
        if (aux.compareTo("Mar") == 0) {
            return 3;
        }
        if (aux.compareTo("Abr") == 0) {
            return 4;
        }
        if (aux.compareTo("May") == 0) {
            return 5;
        }
        if (aux.compareTo("Jun") == 0) {
            return 6;
        }
        if (aux.compareTo("Jul") == 0) {
            return 7;
        }
        if (aux.compareTo("Ago") == 0) {
            return 8;
        }
        if (aux.compareTo("Sep") == 0) {
            return 9;
        }
        if (aux.compareTo("Oct") == 0) {
            return 10;
        }
        if (aux.compareTo("Nov") == 0) {
            return 11;
        }
        if (aux.compareTo("Dic") == 0) {
            return 12;
        }
        return 0;
    }

    /**
     * Funcion que recibe un String con el numero de mes y devuelve las tres
     * primeras letras del mismo mes
     *
     * @param aux String que contiene el numero de mes, ejemplo aux = "02" ó aux
     * = "2"
     * @return String que contiene las tres primeras letras del mes, ejemplo
     * return "Feb"
     */
    private String obtener_mes(String aux) {
        if (aux.compareTo("01") == 0 || aux.compareTo("1") == 0) {
            return "Ene";
        }
        if (aux.compareTo("02") == 0 || aux.compareTo("2") == 0) {
            return "Feb";
        }
        if (aux.compareTo("03") == 0 || aux.compareTo("3") == 0) {
            return "Mar";
        }
        if (aux.compareTo("04") == 0 || aux.compareTo("4") == 0) {
            return "Abr";
        }
        if (aux.compareTo("05") == 0 || aux.compareTo("5") == 0) {
            return "May";
        }
        if (aux.compareTo("06") == 0 || aux.compareTo("6") == 0) {
            return "Jun";
        }
        if (aux.compareTo("07") == 0 || aux.compareTo("7") == 0) {
            return "Jul";
        }
        if (aux.compareTo("08") == 0 || aux.compareTo("8") == 0) {
            return "Ago";
        }
        if (aux.compareTo("09") == 0 || aux.compareTo("9") == 0) {
            return "Sep";
        }
        if (aux.compareTo("10") == 0) {
            return "Oct";
        }
        if (aux.compareTo("11") == 0) {
            return "Nov";
        }
        if (aux.compareTo("12") == 0) {
            return "Dic";
        }
        return null;
    }

    /**
     * Funcion que cargar el portapapeles con el popupmenu
     *
     * @param bol si es true es para cargar macroproyecto + proyecto, si es
     * false es solo para cargar macroproyecto
     */
    private void cargar_porpa(boolean bol) {
        try {
            if (bol) {
                if (modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                    macro = modelo.getValueAt(ct, 0).toString();
                    pro_pla = Integer.parseInt(modelo.getValueAt(ct, 6).toString());
                    pro_ing = 0;
                    if (modelo.getValueAt(ct, 28).toString().compareTo("") != 0) {
                        pro_ing = Integer.parseInt(modelo.getValueAt(ct, 28).toString());
                    }
                    pro_idp = 0;
                    if (modelo.getValueAt(ct, 50).toString().compareTo("") != 0) {
                        pro_idp = Integer.parseInt(modelo.getValueAt(ct, 50).toString());
                    }
                    sql = "select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + pro_idp + ";";
                    rs = con.solo_select(sql);
                    while (rs.next()) {
                        cv = Integer.parseInt(rs.getString(1));
                    }
                } else {
                    macro = "";
                    pro_pla = 0;
                    pro_ing = 0;
                    pro_idp = 0;
                }
            } else {
                macro = modelo.getValueAt(ct, 0).toString();
                pro_pla = 0;
                pro_ing = 0;
                pro_idp = 0;
                sql = "select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + pro_idp + ";";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    cv = Integer.parseInt(rs.getString(1));
                }
            }
            cargar_porpa();
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /**
     * Funcion que carga los datos del Portapapeles
     */
    private void cargar_porpa() {
        String aux = "";
        if (per != 0) {
            try {
                jButton11.setVisible(true);
                sql = "select nombre, apellido from personal where idpersonal = " + per + ";";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    aux = rs.getString(1) + " " + rs.getString(2);
                }
                jTextField11.setText(aux);
                jTextField8.setText(aux);
                jTextField9.setText(aux);
                jTextField10.setText(aux);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            jButton11.setVisible(false);
            jTextField11.setText("No hay ninguna sesion abierta");
        }
        if (macro.compareTo("") == 0) {
            jButton9.setVisible(false);
            jTextPane19.setText("No hay ningun macroproyecto abierto");
            jTextPane16.setText("No hay ningun macroproyecto abierto");
            jTextPane16.setForeground(new java.awt.Color(102, 0, 0));
            jTextPane19.setForeground(new java.awt.Color(102, 0, 0));
        } else {
            jButton9.setVisible(true);
            jTextPane19.setText(macro);
            jTextPane16.setText(macro);
            jTextPane16.setForeground(new java.awt.Color(0, 102, 0));
            jTextPane19.setForeground(new java.awt.Color(0, 102, 0));
        }
        if (pro_pla != 0) {
            try {
                jButton10.setVisible(true);
                sql = "select nombre from proyectos_planificacion where idproyecto_planificacion = " + pro_pla + ";";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    aux = rs.getString(1);
                }
                jTextPane20.setText(aux);
                jTextPane20.setForeground(new java.awt.Color(0, 102, 0));
                jTextPane17.setText(aux);
                jTextPane17.setForeground(new java.awt.Color(0, 102, 0));
                jTextPane18.setText(aux);
                jTextPane18.setForeground(new java.awt.Color(0, 102, 0));
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            jButton10.setVisible(false);
            jTextPane20.setText("No hay ningun proyecto abierto");
            jTextPane20.setForeground(new java.awt.Color(102, 0, 0));
            jTextPane17.setText("No hay ningun proyecto abierto");
            jTextPane17.setForeground(new java.awt.Color(102, 0, 0));
            jTextPane18.setText("No hay ningun proyecto abierto");
            jTextPane18.setForeground(new java.awt.Color(102, 0, 0));
        }
    }

    /**
     * Evento mousepressed del menuitem "Reportar Error", incluido en el
     * jMunuBar1
     *
     * @param evt Evento mousepressed
     */
    private void reportarErrorMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_reportarErrorMousePressed
        try {
            // TODO add your handling code here:
            jTextPane5.setText("");
            jTextPane6.setText("Ingrese una descripcion");
            sql = "select nombre, apellido from personal where idpersonal = '" + per + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                jTextField13.setText(rs.getString(1) + " " + rs.getString(2));
            }
            jComboBox14.setModel(cargar_t_b());
            reporteErrores.setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_reportarErrorMousePressed

    /**
     * Evento focusgained del textpane6, incluido en el jFrame4
     *
     * @param evt Evento focusgained
     */
    private void jTextPane6FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane6FocusGained
        // TODO add your handling code here:
        if (jTextPane6.getText().compareTo("Ingrese una descripcion") == 0) {
            jTextPane6.setText("");
        }
    }//GEN-LAST:event_jTextPane6FocusGained

    /**
     * Evento focuslost del textpane6, incluido en jFrame4
     *
     * @param evt Evento focuslost
     */
    private void jTextPane6FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane6FocusLost
        // TODO add your handling code here:
        jTextPane6.setText(quitaEspacios(jTextPane6.getText()));
        if (jTextPane6.getText().compareTo("") == 0) {
            jTextPane6.setText("Ingrese una descripcion");
        }
    }//GEN-LAST:event_jTextPane6FocusLost

    /**
     * Evento itemstatechanged del combobox14, incluido en el jFrame4
     *
     * @param evt Evento itemstatechanged
     */
    private void jComboBox14ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox14ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox14.getSelectedItem().toString().compareTo("Tipo de Error") != 0) {
            try {
                sql = "select descripcion from tipos_bugs where tipo = '" + jComboBox14.getSelectedItem().toString() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    jTextPane5.setText(rs.getString(1));
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            jTextPane5.setText("");
        }
    }//GEN-LAST:event_jComboBox14ItemStateChanged

    /**
     * Evento mouseclicked del boton "Reportar", incluido en el jFrame4
     *
     * @param evt
     */
    private void jButton37MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton37MouseClicked
        // TODO add your handling code here:
        boton_37();
    }//GEN-LAST:event_jButton37MouseClicked

    /**
     * Funcion que registra los resportes de errores en la base de datos
     */
    private void boton_37() {
        boolean[] h = new boolean[2];
        h[0] = jComboBox14.getSelectedItem().toString().compareTo("Tipo de Error") != 0;
        h[1] = jTextPane6.getText().compareTo("") != 0 && jTextPane6.getText().compareTo("Ingrese una descripcion") != 0;
        if (h[0] && h[1]) {
            try {
                String aux = null;
                sql = "select idtipo_bug from tipos_bugs where tipo = '" + jComboBox14.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    aux = rs.getString(1);
                }
                sql = "insert into bugs (personal,fecha,hora,descripcion,tipo_bug) values (" + per + ",'" + fecha_actual() + "','" + hora_actual() + "','" + jTextPane6.getText() + "'," + aux + ");";
                if (!con.solo_insert(sql)) {
                    reporteErrores.setVisible(false);
                    JOptionPane.showMessageDialog(null, "Se ha generado el reporte con exito", "Reporte de Errores", JOptionPane.INFORMATION_MESSAGE);
                } else {
                    JOptionPane.showMessageDialog(null, "No se ha podido generar el reporte", "Reporte de Errores", JOptionPane.INFORMATION_MESSAGE);
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            JOptionPane.showMessageDialog(null, "Debe llenar los campos solicitados", "Reporte de Errores", JOptionPane.ERROR_MESSAGE);
        }
    }

    /**
     * Evento keypressed del boton "Reportar", incluido en el jFrame4
     *
     * @param evt Evento keypressed
     */
    private void jButton37KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton37KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            boton_37();
        }
    }//GEN-LAST:event_jButton37KeyPressed

    /**
     * Evento mousepressed del menuitem "Recargar Lista", incluido en el
     * jMenuBar1
     *
     * @param evt Evento mousepressed
     */
    private void preorder() {
        boolean aux = false;
        if (busqueda.compareTo("") == 0) {
            sql = "SELECT "
                    + "control_versiones.macroproyecto, "
                    + "control_versiones.proyecto_planificacion, "
                    + "control_versiones.proyecto_ingenieria, "
                    + "control_versiones.proyecto_idp, "
                    + "control_versiones.pre_equipamiento, "
                    + "control_versiones.pre_servicio, "
                    + "control_versiones.pre_otros, "
                    + "control_versiones.pre_total "
                    + "FROM "
                    + "public.macroproyectos, "
                    + "public.control_versiones, "
                    + "public.proyectos_idp, "
                    + "public.proyectos_ingenieria, "
                    + "public.proyectos_planificacion "
                    + "WHERE "
                    + "macroproyectos.idmacroproyecto = control_versiones.macroproyecto AND "
                    + "proyectos_idp.idproyecto_idp = control_versiones.proyecto_idp AND "
                    + "proyectos_ingenieria.idproyecto_ingenieria = control_versiones.proyecto_ingenieria AND "
                    + "proyectos_planificacion.idproyecto_planificacion = control_versiones.proyecto_planificacion AND "
                    + "control_versiones.estatus = 1 "
                    + "ORDER BY ";
        } else {
            sql = busqueda;
        }
        ////////////////////////////////////////////////////////////////////////
        if (jComboBox65.getSelectedItem().toString().compareTo("Marcroproyecto") == 0) {
            sql += "macroproyectos.";
        }
        if (jComboBox65.getSelectedItem().toString().compareTo("Planificacion") == 0) {
            sql += "proyectos_planificacion.";
        }
        if (jComboBox65.getSelectedItem().toString().compareTo("Ingenieria") == 0) {
            sql += "proyectos_ingenieria.";
        }
        if (jComboBox65.getSelectedItem().toString().compareTo("IDP") == 0) {
            sql += "proyectos_idp.";
        }
        ////////////////////////////////////////////////////////////////////////
        if (jComboBox65.getSelectedItem().toString().compareTo("Marcroproyecto") == 0 && jComboBox15.getSelectedItem().toString().compareTo("Codigo") == 0) {
            aux = true;
            sql += "idmacroproyecto ";
        }
        if (jComboBox65.getSelectedItem().toString().compareTo("Planificacion") == 0 && jComboBox15.getSelectedItem().toString().compareTo("Codigo") == 0) {
            aux = true;
            sql += "idproyecto_planificacion ";
        }
        if (jComboBox65.getSelectedItem().toString().compareTo("Ingenieria") == 0 && jComboBox15.getSelectedItem().toString().compareTo("Codigo") == 0) {
            aux = true;
            sql += "idproyecto_ingenieria ";
        }
        if (jComboBox65.getSelectedItem().toString().compareTo("IDP") == 0 && jComboBox15.getSelectedItem().toString().compareTo("Codigo") == 0) {
            aux = true;
            sql += "idproyecto_idp ";
        }
        ////////////////////////////////////////////////////////////////////////
        if ((jComboBox65.getSelectedItem().toString().compareTo("Marcroproyecto") == 0 || jComboBox65.getSelectedItem().toString().compareTo("Planificacion") == 0) && jComboBox15.getSelectedItem().toString().compareTo("Nombre") == 0) {
            aux = true;
            sql += "nombre ";
        }
        ////////////////////////////////////////////////////////////////////////
        if (jComboBox15.getSelectedItem().toString().compareTo("Fecha de Creacion") == 0) {
            aux = true;
            sql += "fecha_creacion ";
        }
        ////////////////////////////////////////////////////////////////////////
        if (jComboBox65.getSelectedItem().toString().compareTo("Marcroproyecto") == 0 && jComboBox15.getSelectedItem().toString().compareTo("Fecha de Realizacion") == 0) {
            aux = true;
            sql += "fecha_realizacion ";
        }
        ////////////////////////////////////////////////////////////////////////
        if (jComboBox65.getSelectedItem().toString().compareTo("Marcroproyecto") == 0 && jComboBox15.getSelectedItem().toString().compareTo("Creador (Personal)") == 0) {
            aux = true;
            sql += "personal ";
        }
        if (jComboBox65.getSelectedItem().toString().compareTo("Marcroproyecto") != 0 && jComboBox15.getSelectedItem().toString().compareTo("Creador (Personal)") == 0) {
            aux = true;
            sql += "creador ";
        }
        ////////////////////////////////////////////////////////////////////////
        if (jComboBox65.getSelectedItem().toString().compareTo("Marcroproyecto") != 0 && jComboBox15.getSelectedItem().toString().compareTo("Asigando (Personal)") == 0) {
            aux = true;
            sql += "responsable ";
        }
        ////////////////////////////////////////////////////////////////////////
        if (jComboBox16.getSelectedItem().toString().compareTo("Ascendente") == 0) {
            sql += "ASC;";
        } else {
            sql += "DESC;";
        }
        ////////////////////////////////////////////////////////////////////////
        if (aux) {
            timer.cancel();
            taimer = true;
            cargar_tabla(sql);
        } else {
            JOptionPane.showMessageDialog(null, "Su peticion no puede ser procesada", "Ordenar Lista", JOptionPane.INFORMATION_MESSAGE);
        }
    }

    /**
     * Funcion que retorna el año actual, ejemplo "2011"
     *
     * @return String que contiene el año actual
     */
    private String anno_actual() {
        fecha = new Date();
        return fecha.toString().substring(24, 28);
    }

    /**
     * Funcion que retorna las tres primeras letras del mes actual, ejemplo
     * "Ene"
     *
     * @return String con el nombre del mes actual
     */
    private String mes_actual() {
        fecha = new Date();
        if (fecha.toString().substring(4, 7).compareTo("Jan") == 0) {
            return "Ene";
        }
        if (fecha.toString().substring(4, 7).compareTo("Feb") == 0) {
            return "Feb";
        }
        if (fecha.toString().substring(4, 7).compareTo("Mar") == 0) {
            return "Mar";
        }
        if (fecha.toString().substring(4, 7).compareTo("Apr") == 0) {
            return "Abr";
        }
        if (fecha.toString().substring(4, 7).compareTo("May") == 0) {
            return "May";
        }
        if (fecha.toString().substring(4, 7).compareTo("Jun") == 0) {
            return "Jun";
        }
        if (fecha.toString().substring(4, 7).compareTo("Jul") == 0) {
            return "Jul";
        }
        if (fecha.toString().substring(4, 7).compareTo("Aug") == 0) {
            return "Ago";
        }
        if (fecha.toString().substring(4, 7).compareTo("Sep") == 0) {
            return "Sep";
        }
        if (fecha.toString().substring(4, 7).compareTo("Oct") == 0) {
            return "Oct";
        }
        if (fecha.toString().substring(4, 7).compareTo("Nov") == 0) {
            return "Nov";
        }
        if (fecha.toString().substring(4, 7).compareTo("Dec") == 0) {
            return "Dic";
        }
        return null;
    }

    /**
     * Funcion que retorna el dia actual, ejemplo "08"
     *
     * @return String que contiene el dia actual
     */
    private String dia_actual() {
        fecha = new Date();
        return fecha.toString().substring(8, 10);
    }

    private void jPasswordField1FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jPasswordField1FocusLost
        // TODO add your handling code here:
        jPasswordField1.setText(quitaEspacios(jPasswordField1.getText()));
    }//GEN-LAST:event_jPasswordField1FocusLost

    private void boton_5() {
        boolean[] hh = new boolean[11];
        hh[0] = jTextPane7.getText().compareTo("Ingrese un nombre") != 0 && jTextPane7.getText().compareTo("") != 0;
        hh[1] = jComboBox17.getSelectedItem().toString().compareTo("Estacion") != 0;
        hh[2] = jComboBox19.getSelectedItem().toString().compareTo("Proveedor") != 0;
        hh[3] = jComboBox20.getSelectedItem().toString().compareTo("Equipo") != 0;
        hh[4] = jComboBox21.getSelectedItem().toString().compareTo("Region") != 0;
        hh[5] = jComboBox22.getSelectedItem().toString().compareTo("Año") != 0;
        hh[6] = jComboBox23.getSelectedItem().toString().compareTo("Mes") != 0;
        hh[7] = jComboBox24.getSelectedItem().toString().compareTo("Prioridad") != 0;
        hh[8] = jComboBox28.getSelectedItem().toString().compareTo("%") != 0;
        hh[9] = jComboBox32.getSelectedItem().toString().compareTo("Linea Base") != 0;
        hh[10] = jTextPane16.getText().compareTo("No hay ningun macroproyecto abierto") != 0;
        if (hh[0] && hh[1] && hh[2] && hh[3] && hh[4] && hh[5] && hh[6] && hh[7] && hh[8] && hh[9] && hh[10]) {
            try {
                String aux = hora_actual(), auxx = "";
                int iaux = ct;
                if (jButton5.getText().compareTo("Crear") == 0 && modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                    Object[] vec = new Object[63];
                    for (int i = 0; i < 59; i++) {
                        if (i < 6) {
                            vec[i] = modelo.getValueAt(iaux, i);
                        } else {
                            vec[i] = "";
                        }
                    }
                    vec[59] = "0";
                    vec[60] = "0";
                    vec[61] = "0";
                    vec[62] = "0";
                    modelo.addRow(vec);
                    iaux = modelo.getRowCount() - 1;
                }
                sql = "insert into proyectos_planificacion (nombre,mes_requerido,anno_compra,linea_base,fecha_creacion,hora_creacion,avance_planificacion,estacion,region,prioridad,creador,proveedor,equipo) values ('" + jTextPane7.getText() + "','" + jComboBox23.getSelectedItem() + "'," + jComboBox22.getSelectedItem() + ",'" + jComboBox32.getSelectedItem() + "','" + fecha_actual() + "','" + aux + "'," + jComboBox28.getSelectedItem() + "," + obt_est() + "," + obt_reg() + "," + obt_pri() + "," + per + "," + obt_pro() + "," + obt_equ() + ");";
                con.solo_insert(sql);
                obt_mig(aux);
                obt_rea(aux);
                obt_des(aux);
                obt_px(aux);
                obt_are(aux);
                obt_pre(aux);
                obt_tmc(aux);
                obt_rge(aux);
                obt_res(aux);
                sql = "select idproyecto_planificacion from proyectos_planificacion where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    auxx = rs.getString(1);
                }
                sql = "update control_versiones set estatus = 3 where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + pro_idp + ";";
                if (con.solo_update(sql) > 0) {
                    aux = hora_actual();
                    sql = "insert into control_versiones (fecha_creacion,hora_creacion,macroproyecto,estatus,proyecto_planificacion,proyecto_ingenieria,proyecto_idp,control_version) values ('" + fecha_actual() + "','" + aux + "','" + macro + "',1," + auxx + "," + pro_ing + "," + pro_idp + "," + cv + ");";
                    con.solo_insert(sql);
                }
                sql = "update tareas set control_version = "
                        + "(select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + auxx + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + pro_idp + ") "
                        + "where control_version = " + cv + ";";
                con.solo_update(sql);
                modelo.setValueAt(auxx, iaux, 6);
                modelo.setValueAt(jTextPane7.getText(), iaux, 7);
                modelo.setValueAt(fecha_actual(), iaux, 8);
                modelo.setValueAt(jComboBox17.getSelectedItem(), iaux, 9);
                if (jComboBox18.getSelectedItem().toString().compareTo("Punto de Repeticion") != 0) {
                    modelo.setValueAt(jComboBox18.getSelectedItem(), iaux, 10);
                }
                modelo.setValueAt(jComboBox19.getSelectedItem(), iaux, 11);
                modelo.setValueAt(jComboBox20.getSelectedItem(), iaux, 12);
                modelo.setValueAt(jComboBox21.getSelectedItem(), iaux, 13);
                modelo.setValueAt(jComboBox22.getSelectedItem(), iaux, 14);
                modelo.setValueAt(jComboBox23.getSelectedItem(), iaux, 15);
                modelo.setValueAt(jComboBox24.getSelectedItem(), iaux, 16);
                modelo.setValueAt(jTextField10.getText(), iaux, 17);
                modelo.setValueAt(jComboBox60.getSelectedItem(), iaux, 18);
                if (jComboBox25.getSelectedItem().toString().compareTo("Radios Gestionables") != 0) {
                    modelo.setValueAt(jComboBox25.getSelectedItem(), iaux, 19);
                }
                if (jComboBox26.getSelectedItem().toString().compareTo("Migracion") != 0) {
                    modelo.setValueAt(jComboBox26.getSelectedItem(), iaux, 20);
                } else {
                    modelo.setValueAt("No", iaux, 20);
                }
                if (jComboBox27.getSelectedItem().toString().compareTo("Rearreglo") != 0) {
                    modelo.setValueAt(jComboBox27.getSelectedItem(), iaux, 21);
                } else {
                    modelo.setValueAt("No", iaux, 21);
                }
                modelo.setValueAt(jComboBox28.getSelectedItem() + " %", iaux, 22);
                modelo.setValueAt(jComboBox32.getSelectedItem(), iaux, 23);
                if (jComboBox29.getSelectedItem().toString().compareTo("Area") != 0) {
                    modelo.setValueAt(jComboBox29.getSelectedItem(), iaux, 24);
                }
                if (jComboBox30.getSelectedItem().toString().compareTo("Tipos de MCI") != 0) {
                    modelo.setValueAt(jComboBox30.getSelectedItem(), iaux, 25);
                }
                modelo.setValueAt(jTextPane4.getText(), iaux, 26);
                if (jComboBox31.getSelectedItem().toString().compareTo("Px") != 0) {
                    modelo.setValueAt(jComboBox31.getSelectedItem(), iaux, 27);
                }
                JOptionPane.showMessageDialog(null, "El proyecto ha sido creado", "Creacion de Proyecto", JOptionPane.INFORMATION_MESSAGE);
                plani();
                macro = "";
                pro_pla = 0;
                pro_ing = 0;
                pro_idp = 0;
                cv = 0;
                cargar_porpa();
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            if (jTextPane16.getText().compareTo("No hay ningun macroproyecto abierto") == 0) {
                JOptionPane.showMessageDialog(null, "Debe carga un macroproyecto para poder asociarlo con el proyecto que esta creando", "Crear Proyecto", JOptionPane.INFORMATION_MESSAGE);
            } else {
                JOptionPane.showMessageDialog(null, "Debe llenar todos los campos obligatorios", "Crear Proyecto", JOptionPane.ERROR_MESSAGE);
            }
        }
    }

    /**
     * Funcion que agrega si existe migracion en el proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     * @throws SQLException
     */
    private void obt_mig(String aux) throws SQLException {
        if (jComboBox26.getSelectedItem().toString().compareTo("Migracion") != 0 && jComboBox26.getSelectedItem().toString().compareTo("No") != 0) {
            sql = "update proyectos_planificacion set migracion = '" + jComboBox26.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
            con.solo_update(sql);
        }
    }

    /**
     * Funcion que agrega si existe rearreglo en el proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     * @throws SQLException
     */
    private void obt_rea(String aux) throws SQLException {
        if (jComboBox27.getSelectedItem().toString().compareTo("Rearreglo") != 0 && jComboBox27.getSelectedItem().toString().compareTo("No") != 0) {
            sql = "update proyectos_planificacion set rearreglo = '" + jComboBox27.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
            con.solo_update(sql);
        }
    }

    /**
     * Funcion que agrega si existe una descripcion del proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     * @throws SQLException
     */
    private void obt_des(String aux) throws SQLException {
        if (jTextPane4.getText().compareTo("Ingrese la descripcion del proyecto") != 0 && jTextPane4.getText().compareTo("") != 0) {
            sql = "update proyectos_planificacion set descripcion = '" + jTextPane4.getText() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
        } else {
            sql = "update proyectos_planificacion set descripcion = 'No existe una descripcion' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
        }
        con.solo_update(sql);
    }

    /**
     * Funcion que agrega si existe px en el proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     * @throws SQLException
     */
    private void obt_px(String aux) throws SQLException {
        if (jComboBox31.getSelectedItem().toString().compareTo("Px") != 0) {
            sql = "update proyectos_planificacion set px = '" + jComboBox31.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
            con.solo_update(sql);
        }
    }

    /**
     * Funcion que devuelve la estacion del proyecto del jComboBox17, incluido
     * en el jPanel3
     *
     * @return String que devuelve la estacion del proyecto
     */
    private String obt_est() {
        try {
            sql = "select idestacion from estaciones where nombre = '" + jComboBox17.getSelectedItem() + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return rs.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el proveedor del proyecto del jComboBox19, incluido
     * en el jPanel3
     *
     * @return String que devuelve el proveedor del proyecto
     */
    private String obt_pro() {
        try {
            sql = "select idproveedor from proveedores where nombre = '" + jComboBox19.getSelectedItem() + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return rs.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve el equipo del proyecto del jComboBox20, incluido en
     * el jPanel3
     *
     * @return String que devuelve el equipo del proyecto
     */
    private String obt_equ() {
        try {
            sql = "select idequipo from equipos where nombre = '" + jComboBox20.getSelectedItem() + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return rs.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve la region del proyecto del jComboBox21, incluido en
     * el jPanel3
     *
     * @return String que devuelve la region del proyecto
     */
    private String obt_reg() {
        try {
            sql = "select idregion from regiones where nombre = '" + jComboBox21.getSelectedItem() + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return rs.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que devuelve la prioridad del proyecto del jComboBox24, incluido
     * en el jPanel3
     *
     * @return String que devuelve la prioridad del proyecto
     */
    private String obt_pri() {
        try {
            sql = "select idprioridad from prioridades where nombre = '" + jComboBox24.getSelectedItem() + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return rs.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    /**
     * Funcion que agrega si existe un area de retraso en el proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     */
    private void obt_are(String aux) {
        if (jComboBox29.getSelectedItem().toString().compareTo("Area") != 0) {
            try {
                sql = "select idarea from areas where nombre = '" + jComboBox29.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    sql = "update proyectos_planificacion set area = '" + rs.getString(1) + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    /**
     * Funcion que agrega si existe un punto de repeticion en el proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     */
    private void obt_pre(String aux) {
        if (jComboBox18.getSelectedItem().toString().compareTo("Punto de Repeticion") != 0) {
            try {
                sql = "select idpunto_repeticion from puntos_repeticion where nombre = '" + jComboBox18.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    sql = "update proyectos_planificacion set punto_repeticion = '" + rs.getString(1) + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    /**
     * Funcion que agrega si existe un tipo de mci en el proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     */
    private void obt_tmc(String aux) {
        if (jComboBox30.getSelectedItem().toString().compareTo("Tipos de MCI") != 0) {
            try {
                sql = "select idtipo_mci from tipos_mci where tipo = '" + jComboBox30.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    sql = "update proyectos_planificacion set tipo_mci = '" + rs.getString(1) + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    /**
     * Funcion que agrega si existe una opcion de radio gestionable en el
     * proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     */
    private void obt_rge(String aux) {
        if (jComboBox25.getSelectedItem().toString().compareTo("Radios Gestionables") != 0) {
            try {
                sql = "select idradio_gestionable from radios_gestionables where opcion = '" + jComboBox25.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    sql = "update proyectos_planificacion set radio_gestionable = '" + rs.getString(1) + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    /**
     * Funcion que agrega el personal al que va asignado el proyecto en el
     * proyecto
     *
     * @param aux contiene la hora de la creacion del proyecto
     */
    private void obt_res(String aux) {
        try {
            String auxx;
            sql = "select idpersonal, nombre, apellido from personal;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                auxx = rs.getString(2) + " " + rs.getString(3);
                if (auxx.compareTo(jComboBox60.getSelectedItem().toString()) == 0) {
                    sql = "update proyectos_planificacion set responsable = " + rs.getString(1) + " where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /**
     * Funcion que apartir del nombre retorna el id de un area en especifico
     *
     * @param toString contiene el nombre del area
     * @return el id del area
     */
    private String obt_arei(String toString) {
        try {
            sql = "select idarea from areas where nombre = '" + toString + "';";
            rs = con.solo_select(sql);
            while (rs.next()) {
                return rs.getString(1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }

    private void obt_pep(String aux) {
        if (jTextField2.getText().compareTo("Ingrese PEP") != 0 && jTextField2.getText().compareTo("") != 0) {
            try {
                sql = "update proyectos_ingenieria set pep_proyecto = '" + jTextField2.getText() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_dce(String aux) {
        if (jTextPane8.getText().compareTo("Ingrese documento de compra") != 0 && jTextPane8.getText().compareTo("") != 0) {
            try {
                sql = "update proyectos_ingenieria set doc_compra_equipo = '" + jTextPane8.getText() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_dcs(String aux) {
        if (jTextPane9.getText().compareTo("Ingrese documento de compra") != 0 && jTextPane9.getText().compareTo("") != 0) {
            try {
                sql = "update proyectos_ingenieria set doc_compra_servicio = '" + jTextPane9.getText() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_nro(String aux) {
        if (jTextField4.getText().compareTo("Nº de reserva") != 0 && jTextField4.getText().compareTo("") != 0) {
            try {
                sql = "update proyectos_ingenieria set nro_reserva = '" + jTextField4.getText() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_resi(String aux) {
        try {
            String auxx;
            sql = "select idpersonal, nombre, apellido from personal;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                auxx = rs.getString(2) + " " + rs.getString(3);
                if (auxx.compareTo(jComboBox61.getSelectedItem().toString()) == 0) {
                    sql = "update proyectos_ingenieria set responsable = " + rs.getString(1) + " where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void obt_spu(String aux) {
        if (jTextField20.getText().compareTo("Semana") != 0) {
            try {
                sql = "update proyectos_ingenieria set sem_publicacion = '" + jComboBox86.getSelectedItem() + "-" + obtener_mes_int(jComboBox85.getSelectedItem().toString()) + "-" + jComboBox84.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_aei(String aux) {
        if (jComboBox43.getSelectedItem().toString().compareTo("Año") != 0) {
            try {
                sql = "update proyectos_ingenieria set anno = '" + jComboBox43.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_spi(String aux) {
        if (jTextField14.getText().toString().compareTo("Semana") != 0) {
            try {
                sql = "update proyectos_ingenieria set sem_plan_imp = '" + jComboBox68.getSelectedItem() + "-" + obtener_mes_int(jComboBox67.getSelectedItem().toString()) + "-" + jComboBox66.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_spa(String aux) {
        if (jTextField15.getText().compareTo("Semana") != 0) {
            try {
                sql = "update proyectos_ingenieria set sem_plan_atp = '" + jComboBox71.getSelectedItem() + "-" + obtener_mes_int(jComboBox70.getSelectedItem().toString()) + "-" + jComboBox69.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_sra(String aux) {
        if (jTextField16.getText().compareTo("Semana") != 0) {
            try {
                sql = "update proyectos_ingenieria set sem_real_atp = '" + jComboBox74.getSelectedItem() + "-" + obtener_mes_int(jComboBox73.getSelectedItem().toString()) + "-" + jComboBox72.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_srg(String aux) {
        if (jTextField17.getText().compareTo("Semana") != 0) {
            try {
                sql = "update proyectos_ingenieria set sem_real_gestion = '" + jComboBox77.getSelectedItem() + "-" + obtener_mes_int(jComboBox76.getSelectedItem().toString()) + "-" + jComboBox75.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_srs(String aux) {
        if (jTextField18.getText().compareTo("Semana") != 0) {
            try {
                sql = "update proyectos_ingenieria set sem_real_sart = '" + jComboBox80.getSelectedItem() + "-" + obtener_mes_int(jComboBox79.getSelectedItem().toString()) + "-" + jComboBox78.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_spe(String aux) {
        if (jTextField19.getText().compareTo("Semana") != 0) {
            try {
                sql = "update proyectos_ingenieria set sem_pes = '" + jComboBox83.getSelectedItem() + "-" + obtener_mes_int(jComboBox82.getSelectedItem().toString()) + "-" + jComboBox81.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_dur(String aux) {
        try {
            sql = "update proyectos_ingenieria set duracion = '" + jLabel79.getText() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
            con.solo_update(sql);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void obt_are2(String aux) {
        if (jComboBox42.getSelectedItem().toString().compareTo("Area") != 0) {
            try {
                sql = "select idarea from areas where nombre = '" + jComboBox42.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    sql = "update proyectos_ingenieria set area = '" + rs.getString(1) + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_obs(String aux) {
        if (jTextPane10.getText().compareTo("Ingrese observacion") != 0 && jTextPane10.getText().compareTo("") != 0) {
            try {
                sql = "update proyectos_ingenieria set observacion = '" + jTextPane10.getText() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_ing(String aux) {
        if (jComboBox44.getSelectedItem().toString().compareTo("Ing") != 0) {
            try {
                sql = "update proyectos_ingenieria set ing = '" + jComboBox44.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void boton_6() {
        if (jTextPane17.getText().compareTo("No hay ningun proyecto abierto") != 0) {
            boolean[] hh = new boolean[3];
            hh[0] = jComboBox33.getSelectedItem().toString().compareTo("Mes") != 0;
            hh[1] = jComboBox34.getSelectedItem().toString().compareTo("Area") != 0;
            hh[2] = jComboBox41.getSelectedItem().toString().compareTo("%") != 0;
            if (hh[0] && hh[1] && hh[2]) {
                try {
                    String aux = hora_actual(), auxx = "";
                    sql = "insert into proyectos_ingenieria (mes_planificado,creador,area_ing,avance_ingenieria,fecha_creacion,hora_creacion) values ('" + jComboBox33.getSelectedItem() + "'," + per + "," + obt_arei(jComboBox34.getSelectedItem().toString()) + "," + jComboBox41.getSelectedItem() + ",'" + fecha_actual() + "','" + aux + "');";
                    con.solo_insert(sql);
                    obt_pep(aux);
                    obt_dce(aux);
                    obt_dcs(aux);
                    obt_nro(aux);
                    obt_resi(aux);
                    obt_spu(aux);
                    obt_aei(aux);
                    obt_spi(aux);
                    obt_spa(aux);
                    obt_sra(aux);
                    obt_srg(aux);
                    obt_srs(aux);
                    obt_spe(aux);
                    obt_dur(aux);
                    obt_are2(aux);
                    obt_obs(aux);
                    obt_ing(aux);
                    sql = "select idproyecto_ingenieria from proyectos_ingenieria where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    rs = con.solo_select(sql);
                    while (rs.next()) {
                        auxx = rs.getString(1);
                    }
                    sql = "update control_versiones set estatus = 3 where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + pro_idp + ";";
                    if (con.solo_update(sql) > 0) {
                        aux = hora_actual();
                        sql = "insert into control_versiones (fecha_creacion,hora_creacion,macroproyecto,estatus,proyecto_planificacion,proyecto_ingenieria,proyecto_idp,control_version) values ('" + fecha_actual() + "','" + aux + "','" + macro + "',1," + pro_pla + "," + auxx + "," + pro_idp + "," + cv + ");";
                        con.solo_insert(sql);
                    }
                    sql = "update tareas set control_version = "
                            + "(select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + auxx + " and proyecto_idp = " + pro_idp + ") "
                            + "where control_version = " + cv + ";";
                    con.solo_update(sql);
                    sql = "update control_versiones set pre_equipamiento = "
                            + "(select pre_equipamiento from control_versiones where idcontrol_version = " + cv + "), "
                            + "pre_servicio = (select pre_servicio from control_versiones where idcontrol_version = " + cv + "), "
                            + "pre_otros = (select pre_otros from control_versiones where idcontrol_version = " + cv + "), "
                            + "pre_total = (select pre_total from control_versiones where idcontrol_version = " + cv + "), "
                            + "personal_pre = (select personal_pre from control_versiones where idcontrol_version = " + cv + ") "
                            + "where idcontrol_version = (select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + auxx + " and proyecto_idp = " + pro_idp + ");";
                    con.solo_update(sql);
                    modelo.setValueAt(auxx, ct, 28);
                    modelo.setValueAt(jComboBox33.getSelectedItem(), ct, 29);
                    if (jTextField2.getText().compareTo("Ingrese PEP") != 0) {
                        modelo.setValueAt(jTextField2.getText(), ct, 30);
                    }
                    if (jTextPane8.getText().compareTo("Ingrese documento de compra") != 0) {
                        modelo.setValueAt(jTextPane8.getText(), ct, 31);
                    }
                    if (jTextPane9.getText().compareTo("Ingrese documento de compra") != 0) {
                        modelo.setValueAt(jTextPane9.getText(), ct, 32);
                    }
                    if (jTextField4.getText().compareTo("Nº de reserva") != 0) {
                        modelo.setValueAt(jTextField4.getText(), ct, 33);
                    }
                    modelo.setValueAt(jComboBox34.getSelectedItem(), ct, 34);
                    modelo.setValueAt(jTextField11.getText(), ct, 35);
                    modelo.setValueAt(jComboBox61.getSelectedItem(), ct, 36);
                    if (jTextField20.getText().compareTo("Semana") != 0) {
                        modelo.setValueAt(jTextField20.getText(), ct, 37);
                    }
                    if (jComboBox43.getSelectedItem().toString().compareTo("Año") != 0) {
                        modelo.setValueAt(jComboBox43.getSelectedItem(), ct, 38);
                    }
                    if (jTextField14.getText().toString().compareTo("Semana") != 0) {
                        modelo.setValueAt(jTextField14.getText(), ct, 39);
                    }
                    if (jTextField15.getText().compareTo("Semana") != 0) {
                        modelo.setValueAt(jTextField15.getText(), ct, 40);
                    }
                    if (jTextField16.getText().compareTo("Semana") != 0) {
                        modelo.setValueAt(jTextField16.getText(), ct, 41);
                    }
                    if (jTextField17.getText().compareTo("Semana") != 0) {
                        modelo.setValueAt(jTextField17.getText(), ct, 42);
                    }
                    if (jTextField18.getText().compareTo("Semana") != 0) {
                        modelo.setValueAt(jTextField18.getText(), ct, 43);
                    }
                    if (jTextField19.getText().compareTo("Semana") != 0) {
                        modelo.setValueAt(jTextField19.getText(), ct, 44);
                    }
                    modelo.setValueAt(jLabel79.getText(), ct, 45);
                    modelo.setValueAt(jComboBox41.getSelectedItem() + " %", ct, 46);
                    if (jComboBox42.getSelectedItem().toString().compareTo("Area") != 0) {
                        modelo.setValueAt(jComboBox42.getSelectedItem(), ct, 47);
                    }
                    if (jTextPane10.getText().compareTo("Ingrese observacion") != 0) {
                        modelo.setValueAt(jTextPane10.getText(), ct, 48);
                    } else {
                        modelo.setValueAt("No existe una descripcion", ct, 48);
                    }
                    if (jComboBox44.getSelectedItem().toString().compareTo("Ing") != 0) {
                        modelo.setValueAt(jComboBox44.getSelectedItem(), ct, 49);
                    }
                    JOptionPane.showMessageDialog(null, "La Ingenieria ha sido creada", "Creacion de Ingenieria", JOptionPane.INFORMATION_MESSAGE);
                    ingen();
                    macro = "";
                    pro_pla = 0;
                    pro_ing = 0;
                    pro_idp = 0;
                    cv = 0;
                    cargar_porpa();
                } catch (SQLException ex) {
                    Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                }
            } else {
                JOptionPane.showMessageDialog(null, "Debe llenar todos los espacio obligatorios", "Crear Ingenieria", JOptionPane.ERROR_MESSAGE);
            }
        } else {
            JOptionPane.showMessageDialog(null, "Debe carga un proyecto", "Crear Ingenieria", JOptionPane.INFORMATION_MESSAGE);
        }
    }

    private void jMenuItem24MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem24MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            cargar_porpa(false);
            String aux = "";
            if (JOptionPane.showConfirmDialog(null, "¿Esta seguro que desea eliminar el macroproyecto? (esto tambien eliminara los macroproyectos asociados a este)", "Eliminar Macroproyecto", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) == 0) {
                aux = quitaEspacios(JOptionPane.showInputDialog(null, "Ingrese el motivo por el cual elimina el macroproyecto", "Motivo de Eliminacion", JOptionPane.QUESTION_MESSAGE));
                if (aux.compareTo("") != 0) {
                    try {
                        sql = "update control_versiones set estatus = 2, personal_eliminacion = " + per + ", razon_eliminacion = '" + aux + "' where macroproyecto = '" + macro + "' and estatus = 1;";
                        if (con.solo_update(sql) > 0) {
                            taimer = true;
                            timer.cancel();
                            cargar_tabla("");
                            JOptionPane.showMessageDialog(null, "Se ha eliminado el macroproyecto", "Eliminar Macroproyecto", JOptionPane.INFORMATION_MESSAGE);
                        }
                    } catch (SQLException ex) {
                        Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                    }
                } else {
                    JOptionPane.showMessageDialog(null, "No se ha eliminado el macroproyecto, ya que la razon por la cual se elimina es de caracter obligatorio", "Eliminar Macroproyecto", JOptionPane.INFORMATION_MESSAGE);
                }
            }
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem24MousePressed

    private void jButton4KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton4KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            preorder();
        }
}//GEN-LAST:event_jButton4KeyPressed

    private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton4MouseClicked
        // TODO add your handling code here:
        preorder();
}//GEN-LAST:event_jButton4MouseClicked

    private void jTextPane11FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane11FocusLost
        // TODO add your handling code here:
        jTextPane11.setText(quitaEspacios(jTextPane11.getText()));
        if (jTextPane11.getText().compareTo("") == 0) {
            jTextPane11.setText("Ingrese observacion");
        }
}//GEN-LAST:event_jTextPane11FocusLost

    private void jTextPane11FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane11FocusGained
        // TODO add your handling code here:
        if (jTextPane11.getText().compareTo("Ingrese observacion") == 0) {
            jTextPane11.setText("");
        }
}//GEN-LAST:event_jTextPane11FocusGained

    private void jButton6KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton6KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            if (tu == 1 || ar == 4 || ar == 5 || ar == 6) {
                boton_6();
            } else {
                JOptionPane.showMessageDialog(null, "Para crear una ingenieria debe ser supervisor o pertenecer al area de ingenieria", "Crear Ingenieria", JOptionPane.ERROR_MESSAGE);
            }
        }
}//GEN-LAST:event_jButton6KeyPressed

    private void jButton6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton6MouseClicked
        // TODO add your handling code here:
        if (tu == 1 || ar == 4 || ar == 5 || ar == 6) {
            boton_6();
        } else {
            JOptionPane.showMessageDialog(null, "Para crear una ingenieria debe ser supervisor o pertenecer al area de ingenieria", "Crear Ingenieria", JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton6MouseClicked

    private void jTextPane10FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane10FocusLost
        // TODO add your handling code here:
        jTextPane10.setText(quitaEspacios(jTextPane10.getText()));
        if (jTextPane10.getText().compareTo("") == 0) {
            jTextPane10.setText("Ingrese observacion");
        }
}//GEN-LAST:event_jTextPane10FocusLost

    private void jTextPane10FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane10FocusGained
        // TODO add your handling code here:
        if (jTextPane10.getText().compareTo("Ingrese observacion") == 0) {
            jTextPane10.setText("");
        }
}//GEN-LAST:event_jTextPane10FocusGained

    private void jTextField4FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField4FocusLost
        // TODO add your handling code here:
        jTextField4.setText(quitaEspacios(jTextField4.getText()));
        if (jTextField4.getText().compareTo("") == 0) {
            jTextField4.setText("Nº de reserva");
        }
}//GEN-LAST:event_jTextField4FocusLost

    private void jTextField4FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField4FocusGained
        // TODO add your handling code here:
        if (jTextField4.getText().compareTo("Nº de reserva") == 0) {
            jTextField4.setText("");
        }
}//GEN-LAST:event_jTextField4FocusGained

    private void jTextPane9FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane9FocusLost
        // TODO add your handling code here:
        jTextPane9.setText(quitaEspacios(jTextPane9.getText()));
        if (jTextPane9.getText().compareTo("") == 0) {
            jTextPane9.setText("Ingrese documento de compra");
        }
}//GEN-LAST:event_jTextPane9FocusLost

    private void jTextPane9FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane9FocusGained
        // TODO add your handling code here:
        if (jTextPane9.getText().compareTo("Ingrese documento de compra") == 0) {
            jTextPane9.setText("");
        }
}//GEN-LAST:event_jTextPane9FocusGained

    private void jTextPane8FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane8FocusLost
        // TODO add your handling code here:
        jTextPane8.setText(quitaEspacios(jTextPane8.getText()));
        if (jTextPane8.getText().compareTo("") == 0) {
            jTextPane8.setText("Ingrese documento de compra");
        }
}//GEN-LAST:event_jTextPane8FocusLost

    private void jTextPane8FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane8FocusGained
        // TODO add your handling code here:
        if (jTextPane8.getText().compareTo("Ingrese documento de compra") == 0) {
            jTextPane8.setText("");
        }
}//GEN-LAST:event_jTextPane8FocusGained

    private void jTextField2FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField2FocusLost
        // TODO add your handling code here:
        jTextField2.setText(quitaEspacios(jTextField2.getText()));
        if (jTextField2.getText().compareTo("") == 0) {
            jTextField2.setText("Ingrese PEP");
        }
}//GEN-LAST:event_jTextField2FocusLost

    private void jTextField2FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField2FocusGained
        if (jTextField2.getText().compareTo("Ingrese PEP") == 0) {
            jTextField2.setText("");
        }
}//GEN-LAST:event_jTextField2FocusGained

    private void jButton5KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton5KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            if (tu == 1 || ar == 1) {
                boton_5();
            } else {
                JOptionPane.showMessageDialog(null, "Para crear un proyecto debe ser supervisor o pertenecer al area de planificacion", "Crear Proyecto", JOptionPane.ERROR_MESSAGE);
            }
        }
}//GEN-LAST:event_jButton5KeyPressed

    private void jButton5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton5MouseClicked
        // TODO add your handling code here:
        if (tu == 1 || ar == 1) {
            if (jButton5.getText().compareTo("Crear") == 0) {
                cargar_porpa(false);
            } else {
                cargar_porpa(true);
            }
            boton_5();
        } else {
            JOptionPane.showMessageDialog(null, "Para crear un proyecto debe ser supervisor o pertenecer al area de planificacion", "Crear Proyecto", JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton5MouseClicked

    private void jTextPane4FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane4FocusLost
        // TODO add your handling code here:
        jTextPane4.setText(quitaEspacios(jTextPane4.getText()));
        if (jTextPane4.getText().compareTo("") == 0) {
            jTextPane4.setText("Ingrese la descripcion del proyecto");
        }
}//GEN-LAST:event_jTextPane4FocusLost

    private void jTextPane4FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane4FocusGained
        // TODO add your handling code here:
        if (jTextPane4.getText().compareTo("Ingrese la descripcion del proyecto") == 0) {
            jTextPane4.setText("");
        }
}//GEN-LAST:event_jTextPane4FocusGained

    private void jComboBox27ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox27ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 && jComboBox27.getSelectedItem().toString().compareTo("Si") == 0) {
            c2_12 = false;
            jComboBox26.setSelectedItem("No");
            c2_12 = true;
        }
        if (c2_12 && jComboBox27.getSelectedItem().toString().compareTo("Rearreglo") == 0) {
            c2_12 = false;
            jComboBox26.setSelectedItem("Migracion");
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox27ItemStateChanged

    private void jComboBox26ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox26ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 && jComboBox26.getSelectedItem().toString().compareTo("Si") == 0) {
            c2_12 = false;
            jComboBox27.setSelectedItem("No");
            c2_12 = true;
        }
        if (c2_12 && jComboBox26.getSelectedItem().toString().compareTo("Migracion") == 0) {
            c2_12 = false;
            jComboBox27.setSelectedItem("Rearreglo");
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox26ItemStateChanged

    private void jComboBox24ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox24ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox24.getSelectedItem().toString().compareTo("Emergencia") == 0 && c2_12) {
            c2_12 = false;
            //JOptionPane.showMessageDialog(null, "Cuando se selecciona emergencia es porque el proyecto debe aplicarse el mes en curso", "Emergencia", JOptionPane.INFORMATION_MESSAGE);
            jComboBox23.setSelectedItem(mes_actual());
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox24ItemStateChanged

    private void jComboBox23ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox23ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 && jComboBox24.getSelectedItem().toString().compareTo("Emergencia") == 0 && jComboBox23.getSelectedItem().toString().compareTo(mes_actual()) != 0) {
            c2_12 = false;
            jComboBox24.setSelectedItem("Prioridad");
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox23ItemStateChanged

    private void jComboBox4ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox4ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox4.getSelectedItem().toString().compareTo("Dia") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox4.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox5.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox6.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias();
            } else {
                jLabel10.setText("Dia de la semana");
            }
            c2_12 = true;
        } else {
            jLabel10.setText("Dia de la semana");
        }
}//GEN-LAST:event_jComboBox4ItemStateChanged

    private void jButton8KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton8KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            if (tu == 1 || ar == 1) {
                crear_macro();
            } else {
                JOptionPane.showMessageDialog(null, "Para crear un macroproyecto debe ser supervisor o pertenecer al area de planificacion", "Crear Macroproyecto", JOptionPane.ERROR_MESSAGE);
            }
        }
}//GEN-LAST:event_jButton8KeyPressed

    private void jButton8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton8MouseClicked
        // TODO add your handling code here:
        if (tu == 1 || ar == 1) {
            crear_macro();
        } else {
            JOptionPane.showMessageDialog(null, "Para crear un macroproyecto debe ser supervisor o pertenecer al area de planificacion", "Crear Macroproyecto", JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton8MouseClicked

    private void jButton30KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton30KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER && jButton30.isEnabled()) {
            if (tu == 1 || ar == 1) {
                boton_30();
            } else {
                JOptionPane.showMessageDialog(null, "Para modificar un macroproyecto debe ser supervisor o pertenecer al area de planificacion", "Modificar Macroproyecto", JOptionPane.ERROR_MESSAGE);
            }
        }
}//GEN-LAST:event_jButton30KeyPressed

    private void jButton30MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton30MouseClicked
        // TODO add your handling code here:
        if (jButton30.isEnabled() && (tu == 1 || ar == 1)) {
            boton_30();
        } else {
            JOptionPane.showMessageDialog(null, "Para modificar un macroproyecto debe ser supervisor o pertenecer al area de planificacion", "Modificar Macroproyecto", JOptionPane.ERROR_MESSAGE);
        }
}//GEN-LAST:event_jButton30MouseClicked

    private void jTextPane1FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane1FocusLost
        // TODO add your handling code here:
        jTextPane1.setText(quitaEspacios(jTextPane1.getText()));
        if (jTextPane1.getText().compareTo("") == 0) {
            jTextPane1.setText("Ingrese la descripcion del macroproyecto");
        }
}//GEN-LAST:event_jTextPane1FocusLost

    private void jTextPane1FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane1FocusGained
        // TODO add your handling code here:
        if (jTextPane1.getText().compareTo("Ingrese la descripcion del macroproyecto") == 0) {
            jTextPane1.setText("");
        }
}//GEN-LAST:event_jTextPane1FocusGained

    private void jComboBox2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox2ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 == true) {
            c2_12 = false;
            jComboBox12.setSelectedItem(jComboBox2.getSelectedItem());
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox2ItemStateChanged

    private void jComboBox6ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox6ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox6.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox4.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox5.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox6.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias();
            } else {
                jLabel10.setText("Dia de la semana");
            }
            c2_12 = true;
        } else {
            jLabel10.setText("Dia de la semana");
        }
        if (c2_12 == true) {
            c2_12 = false;
            jComboBox10.setSelectedItem(jComboBox6.getSelectedItem());
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox6ItemStateChanged

    private void jComboBox9ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox9ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox9.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox7.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox8.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox9.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias2();
            }
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox9ItemStateChanged

    private void jComboBox5ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox5ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox5.getSelectedItem().toString().compareTo("Mes") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox4.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox5.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox6.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias();
            } else {
                jLabel10.setText("Dia de la semana");
            }
            c2_12 = true;
        } else {
            jLabel10.setText("Dia de la semana");
        }
}//GEN-LAST:event_jComboBox5ItemStateChanged

    private void jComboBox8ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox8ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox8.getSelectedItem().toString().compareTo("Mes") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox7.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox8.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox9.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias2();
            }
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox8ItemStateChanged

    private void jComboBox7ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox7ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox7.getSelectedItem().toString().compareTo("Dia") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox7.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox8.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox9.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias2();
            }
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox7ItemStateChanged

    private void jComboBox10ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox10ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 == true) {
            c2_12 = false;
            jComboBox6.setSelectedItem(jComboBox10.getSelectedItem());
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox10ItemStateChanged

    private void jComboBox3ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox3ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 == true) {
            c2_12 = false;
            jComboBox11.setSelectedItem(jComboBox3.getSelectedItem());
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox3ItemStateChanged

    private void jComboBox11ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox11ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 == true) {
            c2_12 = false;
            jComboBox3.setSelectedItem(jComboBox11.getSelectedItem());
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox11ItemStateChanged

    private void jComboBox12ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox12ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 == true) {
            c2_12 = false;
            jComboBox2.setSelectedItem(jComboBox12.getSelectedItem());
            c2_12 = true;
        }
}//GEN-LAST:event_jComboBox12ItemStateChanged

    private void jButton11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton11MouseClicked
        // TODO add your handling code here:
        salir_sesion();
    }//GEN-LAST:event_jButton11MouseClicked

    private void jButton11KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton11KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            salir_sesion();
        }
    }//GEN-LAST:event_jButton11KeyPressed

    private void jButton9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton9MouseClicked
        // TODO add your handling code here:
        boton_9();
    }//GEN-LAST:event_jButton9MouseClicked

    private void boton_9() {
        plani();
        cargar_crear_macro();
        ingen();
        idp();
        jButton5.setText("Crear");
        jButton8.setEnabled(true);
        jButton30.setEnabled(false);
        macro = "";
        pro_pla = 0;
        pro_ing = 0;
        pro_idp = 0;
        cv = 0;
        cargar_porpa();
    }

    private void jButton9KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton9KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            boton_9();
        }
    }//GEN-LAST:event_jButton9KeyPressed

    private void jButton10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton10MouseClicked
        // TODO add your handling code here:
        boton_10();
    }//GEN-LAST:event_jButton10MouseClicked

    private void boton_10() {
        plani();
        cargar_crear_macro();
        ingen();
        idp();
        jButton5.setText("Crear");
        jButton8.setEnabled(true);
        jButton30.setEnabled(false);
        pro_pla = 0;
        pro_ing = 0;
        pro_idp = 0;
        cv = 0;
        cargar_porpa();
        cargar_porpa(false);
    }

    private void jButton10KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton10KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            boton_10();
        }
    }//GEN-LAST:event_jButton10KeyPressed

    private void jMenuItem28MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem28MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            tareas.setTitle("Nueva Tarea");
            jButton12.setText("Crear");
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            cargar_porpa(true);
            if (jTextPane20.getText().compareTo("No hay ningun proyecto abierto") != 0) {
                jLabel30.setText(jTextField11.getText());
                jTextPane14.setText(jTextPane20.getText());
                jComboBox55.setModel(cargar_personal(false, 0));
                jComboBox55.setSelectedItem(jLabel30.getText());
                jComboBox55.setEnabled(false);
                jComboBox56.setSelectedItem(String.valueOf(Integer.parseInt(dia_actual())));
                jComboBox57.setSelectedItem(mes_actual());
                jComboBox58.setSelectedItem(anno_actual());
                jComboBox54.setModel(cargar_tipos_tareas());
                jTextPane13.setText("Ingrese observacion");
                jTextPane12.setText("");
                jComboBox63.setModel(cargar_tareas_macro());
                jComboBox64.setEnabled(false);
                jComboBox64.setSelectedIndex(0);
                tareas.setVisible(true);
            } else {
                JOptionPane.showMessageDialog(null, "Debe existir un proyecto para poder crear una tarea", "Crear Tarea", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem28MousePressed

    private void jTextPane13FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane13FocusGained
        // TODO add your handling code here:
        if (jTextPane13.getText().compareTo("Ingrese observacion") == 0) {
            jTextPane13.setText("");
        }
    }//GEN-LAST:event_jTextPane13FocusGained

    private void jTextPane13FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane13FocusLost
        // TODO add your handling code here:
        jTextPane13.setText(quitaEspacios(jTextPane13.getText()));
        if (jTextPane13.getText().compareTo("") == 0) {
            jTextPane13.setText("Ingrese observacion");
        }
    }//GEN-LAST:event_jTextPane13FocusLost

    private void jMenuItem10MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem10MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            cargar_porpa(false);
            jButton5.setText("Crear");
            jTabbedPane1.setSelectedIndex(1);
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem10MousePressed

    private void jMenuItem29MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem29MousePressed
        // TODO add your handling code here:
        cargar_crear_macro();
        plani();
        ingen();
        idp();
        macro = "";
        pro_pla = 0;
        pro_ing = 0;
        pro_idp = 0;
        cv = 0;
        cargar_porpa();
        jTabbedPane1.setSelectedIndex(0);
    }//GEN-LAST:event_jMenuItem29MousePressed

    private void jMenuItem12MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem12MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            if (modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                if (modelo.getValueAt(ct, 28).toString().compareTo("") == 0) {
                    cargar_porpa(true);
                    jTabbedPane1.setSelectedIndex(3);
                } else {
                    macro = "";
                    pro_pla = 0;
                    pro_ing = 0;
                    pro_idp = 0;
                    cv = 0;
                    cargar_porpa();
                    JOptionPane.showMessageDialog(null, "Ya existe una Ingenieria", "Crear Ingenieria", JOptionPane.INFORMATION_MESSAGE);
                }
            } else {
                macro = "";
                pro_pla = 0;
                pro_ing = 0;
                pro_idp = 0;
                cv = 0;
                cargar_porpa();
                JOptionPane.showMessageDialog(null, "Debe existir un Proyecto para que que exista una Ingenieria", "Crear Ingenieria", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem12MousePressed

    private void jMenuItem13MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem13MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            if (modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                if (modelo.getValueAt(ct, 50).toString().compareTo("") == 0) {
                    cargar_porpa(true);
                    jTabbedPane1.setSelectedIndex(4);
                } else {
                    macro = "";
                    pro_pla = 0;
                    pro_ing = 0;
                    pro_idp = 0;
                    cv = 0;
                    cargar_porpa();
                    JOptionPane.showMessageDialog(null, "Ya existe una Integracion de Proyectos", "Crear IDP", JOptionPane.INFORMATION_MESSAGE);
                }
            } else {
                macro = "";
                pro_pla = 0;
                pro_ing = 0;
                pro_idp = 0;
                cv = 0;
                cargar_porpa();
                JOptionPane.showMessageDialog(null, "Debe existir un Proyecto para que que exista una Integracion de Proyecto", "Crear IDP", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem13MousePressed

    private void jButton7KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton7KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            if (tu == 1 || ar == 3) {
                boton_7();
            } else {
                JOptionPane.showMessageDialog(null, "Para crear una integracion de proyecto debe ser supervisor o pertenecer a esta area", "Crear IDP", JOptionPane.ERROR_MESSAGE);
            }
        }
    }//GEN-LAST:event_jButton7KeyPressed

    private void obt_fpp(String aux) {
        if (jComboBox45.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox46.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox47.getSelectedItem().toString().compareTo("Año") != 0) {
            try {
                sql = "update proyectos_idp set fecha_plan_pes = '" + jComboBox47.getSelectedItem() + "-" + obtener_mes_int(jComboBox46.getSelectedItem().toString()) + "-" + jComboBox45.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_frp(String aux) {
        if (jComboBox48.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox49.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox50.getSelectedItem().toString().compareTo("Año") != 0) {
            try {
                sql = "update proyectos_idp set fecha_real_pes = '" + jComboBox50.getSelectedItem() + "-" + obtener_mes_int(jComboBox49.getSelectedItem().toString()) + "-" + jComboBox48.getSelectedItem() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_areidp(String aux) {
        if (jComboBox52.getSelectedItem().toString().compareTo("Area") != 0) {
            try {
                sql = "select idarea from areas where nombre = '" + jComboBox52.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    sql = "update proyectos_idp set area = '" + rs.getString(1) + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_obsidp(String aux) {
        try {
            if (jTextPane11.getText().compareTo("Ingrese observacion") != 0 && jTextPane11.getText().compareTo("") != 0) {
                sql = "update proyectos_idp set observacion = '" + jTextPane11.getText() + "' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
            } else {
                sql = "update proyectos_idp set observacion = 'No existe una descripcion' where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
            }
            con.solo_update(sql);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void obt_idp(String aux) {
        if (jComboBox53.getSelectedItem().toString().compareTo("IDP") != 0) {
            try {
                sql = "update proyectos_idp set idp = " + jComboBox53.getSelectedItem() + " where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                con.solo_update(sql);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    private void obt_residp(String aux) {
        try {
            String auxx;
            sql = "select idpersonal, nombre, apellido from personal;";
            rs = con.solo_select(sql);
            while (rs.next()) {
                auxx = rs.getString(2) + " " + rs.getString(3);
                if (auxx.compareTo(jComboBox62.getSelectedItem().toString()) == 0) {
                    sql = "update proyectos_idp set responsable = " + rs.getString(1) + " where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    con.solo_update(sql);
                    break;
                }
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void boton_7() {
        if (jTextPane18.getText().compareTo("No hay ningun proyecto abierto") != 0) {
            if (diferencia_fechas() == -1000 || diferencia_fechas() > 0) {
                if (jComboBox51.getSelectedItem().toString().compareTo("%") != 0) {
                    try {
                        String aux = hora_actual(), auxx = "";
                        sql = "insert into proyectos_idp (avance_idp,creador,fecha_creacion,hora_creacion) values (" + jComboBox51.getSelectedItem() + "," + per + ",'" + fecha_actual() + "','" + aux + "');";
                        con.solo_insert(sql);
                        obt_fpp(aux);
                        obt_frp(aux);
                        obt_areidp(aux);
                        obt_obsidp(aux);
                        obt_idp(aux);
                        obt_residp(aux);
                        sql = "select idproyecto_idp from proyectos_idp where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            auxx = rs.getString(1);
                        }
                        sql = "update control_versiones set estatus = 3 where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + pro_idp + ";";
                        if (con.solo_update(sql) > 0) {
                            aux = hora_actual();
                            sql = "insert into control_versiones (fecha_creacion,hora_creacion,macroproyecto,estatus,proyecto_planificacion,proyecto_ingenieria,proyecto_idp,control_version) values ('" + fecha_actual() + "','" + aux + "','" + macro + "',1," + pro_pla + "," + pro_ing + "," + auxx + "," + cv + ");";
                            con.solo_insert(sql);
                        }
                        sql = "update tareas set control_version = "
                                + "(select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + auxx + ") "
                                + "where control_version = " + cv + ";";
                        con.solo_update(sql);
                        sql = "update control_versiones set pre_equipamiento = "
                                + "(select pre_equipamiento from control_versiones where idcontrol_version = " + cv + "), "
                                + "pre_servicio = (select pre_servicio from control_versiones where idcontrol_version = " + cv + "), "
                                + "pre_otros = (select pre_otros from control_versiones where idcontrol_version = " + cv + "), "
                                + "pre_total = (select pre_total from control_versiones where idcontrol_version = " + cv + "), "
                                + "personal_pre = (select personal_pre from control_versiones where idcontrol_version = " + cv + ") "
                                + "where idcontrol_version = (select idcontrol_version from control_versiones where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + auxx + ");";
                        con.solo_update(sql);
                        modelo.setValueAt(auxx, ct, 50);
                        modelo.setValueAt(get_personal(String.valueOf(per)), ct, 51);
                        modelo.setValueAt(jComboBox62.getSelectedItem(), ct, 52);
                        if (jComboBox45.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox46.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox47.getSelectedItem().toString().compareTo("Año") != 0) {
                            modelo.setValueAt(jComboBox47.getSelectedItem() + "-" + obtener_mes_int(jComboBox46.getSelectedItem().toString()) + "-" + jComboBox45.getSelectedItem(), ct, 53);
                        }
                        if (jComboBox48.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox49.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox50.getSelectedItem().toString().compareTo("Año") != 0) {
                            modelo.setValueAt(jComboBox50.getSelectedItem() + "-" + obtener_mes_int(jComboBox49.getSelectedItem().toString()) + "-" + jComboBox48.getSelectedItem(), ct, 54);
                        }
                        modelo.setValueAt(jComboBox51.getSelectedItem() + " %", ct, 55);
                        if (jComboBox52.getSelectedItem().toString().compareTo("Area") != 0) {
                            modelo.setValueAt(jComboBox52.getSelectedItem(), ct, 56);
                        }
                        if (jTextPane11.getText().compareTo("Ingrese observacion") != 0 && jTextPane11.getText().compareTo("") != 0) {
                            modelo.setValueAt(jTextPane11.getText(), ct, 57);
                        } else {
                            modelo.setValueAt("No existe una descripcion", ct, 57);
                        }
                        if (jComboBox53.getSelectedItem().toString().compareTo("IDP") != 0) {
                            modelo.setValueAt(jComboBox53.getSelectedItem(), ct, 58);
                        }
                        JOptionPane.showMessageDialog(null, "La Integracion del Proyecto ha sido creada", "Creacion de IDP", JOptionPane.INFORMATION_MESSAGE);
                        idp();
                        macro = "";
                        pro_pla = 0;
                        pro_ing = 0;
                        pro_idp = 0;
                        cv = 0;
                        cargar_porpa();
                    } catch (SQLException ex) {
                        Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                    }
                } else {
                    JOptionPane.showMessageDialog(null, "Debe llenar todos los campos obligatorios", "Crear IDP", JOptionPane.ERROR_MESSAGE);
                }
            } else {
                JOptionPane.showMessageDialog(null, "La fecha real de puesta en servicio debe ser mayor a la fecha planificada de puesta en servicio", "Creacion de IDP", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            JOptionPane.showMessageDialog(null, "Debe cargar un proyecto", "Crear IDP", JOptionPane.INFORMATION_MESSAGE);
        }
    }

    private void jButton7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton7MouseClicked
        // TODO add your handling code here:
        if (tu == 1 || ar == 3) {
            boton_7();
        } else {
            JOptionPane.showMessageDialog(null, "Para crear una integracion de proyecto debe ser supervisor o pertenecer a esta area", "Crear IDP", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_jButton7MouseClicked

    private void jComboBox43ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox43ItemStateChanged
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBox43ItemStateChanged

    private void jComboBox45ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox45ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox45.getSelectedItem().toString().compareTo("Dia") != 0) {
                jComboBox48.setEnabled(true);
                if (jComboBox45.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox46.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox47.getSelectedItem().toString().compareTo("Año") != 0) {
                    calcular_dias3();
                } else {
                    jLabel91.setText("Dia de la semana");
                }
            } else {
                jComboBox48.setSelectedItem("Dia");
                jComboBox48.setEnabled(false);
                jLabel91.setText("Dia de la semana");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox45ItemStateChanged

    private void jComboBox46ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox46ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox46.getSelectedItem().toString().compareTo("Mes") != 0) {
                jComboBox49.setEnabled(true);
                if (jComboBox45.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox46.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox47.getSelectedItem().toString().compareTo("Año") != 0) {
                    calcular_dias3();
                } else {
                    jLabel91.setText("Dia de la semana");
                }
            } else {
                jComboBox49.setSelectedItem("Mes");
                jComboBox49.setEnabled(false);
                jLabel91.setText("Dia de la semana");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox46ItemStateChanged

    private void jComboBox47ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox47ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox47.getSelectedItem().toString().compareTo("Año") != 0) {
                jComboBox50.setEnabled(true);
                if (jComboBox50.getSelectedItem().toString().compareTo("Año") != 0) {
                    if (Integer.parseInt(jComboBox47.getSelectedItem().toString()) > Integer.parseInt(jComboBox50.getSelectedItem().toString())) {
                        jComboBox50.setSelectedItem(jComboBox47.getSelectedItem());
                    }
                }
                if (jComboBox45.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox46.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox47.getSelectedItem().toString().compareTo("Año") != 0) {
                    calcular_dias3();
                } else {
                    jLabel91.setText("Dia de la semana");
                }
            } else {
                jComboBox50.setSelectedItem("Año");
                jComboBox50.setEnabled(false);
                jLabel91.setText("Dia de la semana");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox47ItemStateChanged

    private void jComboBox48ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox48ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox48.getSelectedItem().toString().compareTo("Dia") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox48.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox49.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox50.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias4();
            } else {
                jLabel92.setText("Dia de la semana");
            }
            c2_12 = true;
        } else {
            jLabel92.setText("Dia de la semana");
        }
    }//GEN-LAST:event_jComboBox48ItemStateChanged

    private void jComboBox49ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox49ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox49.getSelectedItem().toString().compareTo("Mes") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox48.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox49.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox50.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias4();
            } else {
                jLabel92.setText("Dia de la semana");
            }
            c2_12 = true;
        } else {
            jLabel92.setText("Dia de la semana");
        }
    }//GEN-LAST:event_jComboBox49ItemStateChanged

    private void jComboBox50ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox50ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox50.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            if (jComboBox47.getSelectedItem().toString().compareTo("Año") != 0) {
                if (Integer.parseInt(jComboBox47.getSelectedItem().toString()) > Integer.parseInt(jComboBox50.getSelectedItem().toString())) {
                    jComboBox47.setSelectedItem(jComboBox50.getSelectedItem());
                }
            }
            if (jComboBox48.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox49.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox50.getSelectedItem().toString().compareTo("Año") != 0) {
                calcular_dias4();
            } else {
                jLabel92.setText("Dia de la semana");
            }
            c2_12 = true;
        } else {
            jLabel92.setText("Dia de la semana");
        }
    }//GEN-LAST:event_jComboBox50ItemStateChanged

    private void jComboBox31ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox31ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox31.getSelectedItem().toString().compareTo("1") == 0) {
                jComboBox28.setSelectedItem("100");
            } else {
                jComboBox28.setSelectedItem("%");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox31ItemStateChanged

    private void jComboBox44ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox44ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox44.getSelectedItem().toString().compareTo("1") == 0) {
                jComboBox41.setSelectedItem("100");
            } else {
                jComboBox41.setSelectedItem("%");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox44ItemStateChanged

    private void jComboBox53ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox53ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox53.getSelectedItem().toString().compareTo("1") == 0) {
                jComboBox51.setSelectedItem("100");
            } else {
                jComboBox51.setSelectedItem("%");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox53ItemStateChanged

    private void jComboBox28ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox28ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox28.getSelectedItem().toString().compareTo("100") == 0) {
                jComboBox31.setSelectedItem("1");
            } else {
                jComboBox31.setSelectedItem("Px");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox28ItemStateChanged

    private void jComboBox41ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox41ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox41.getSelectedItem().toString().compareTo("100") == 0) {
                jComboBox44.setSelectedItem("1");
            } else {
                jComboBox44.setSelectedItem("Ing");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox41ItemStateChanged

    private void jComboBox51ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox51ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox51.getSelectedItem().toString().compareTo("100") == 0) {
                jComboBox53.setSelectedItem("1");
            } else {
                jComboBox53.setSelectedItem("IDP");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox51ItemStateChanged

    private void jComboBox56ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox56ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox56.getSelectedItem().toString().compareTo("Dia") != 0) {
                if (jComboBox56.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox57.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox58.getSelectedItem().toString().compareTo("Año") != 0) {
                    calcular_dias5();
                } else {
                    jLabel28.setText("Dia de la semana");
                }
            } else {
                jLabel28.setText("Dia de la semana");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox56ItemStateChanged

    private void jComboBox57ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox57ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox57.getSelectedItem().toString().compareTo("Mes") != 0) {
                if (jComboBox56.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox57.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox58.getSelectedItem().toString().compareTo("Año") != 0) {
                    calcular_dias5();
                } else {
                    jLabel28.setText("Dia de la semana");
                }
            } else {
                jLabel28.setText("Dia de la semana");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox57ItemStateChanged

    private void jComboBox58ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox58ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox58.getSelectedItem().toString().compareTo("Año") == 0) {
            jComboBox58.setSelectedItem(anno_actual());
        } else {
            if (Integer.parseInt(jComboBox58.getSelectedItem().toString()) < Integer.parseInt(anno_actual())) {
                jComboBox58.setSelectedItem(anno_actual());
            }
        }
        if (c2_12) {
            c2_12 = false;
            if (jComboBox58.getSelectedItem().toString().compareTo("Año") != 0) {

                if (jComboBox56.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox57.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox58.getSelectedItem().toString().compareTo("Año") != 0) {
                    calcular_dias5();
                } else {
                    jLabel28.setText("Dia de la semana");
                }
            } else {
                jLabel28.setText("Dia de la semana");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox58ItemStateChanged

    private void jMenuItem16MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem16MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            cargar_porpa(true);
            StringTokenizer token = new StringTokenizer(modelo.getValueAt(ct, 1).toString(), "_");
            jButton8.setEnabled(false);
            jButton30.setEnabled(true);
            jComboBox10.setEnabled(true);
            jComboBox11.setEnabled(true);
            jComboBox12.setEnabled(true);
            jComboBox13.setEnabled(false);
            jComboBox7.setEnabled(false);
            jComboBox8.setEnabled(false);
            jComboBox9.setEnabled(false);
            jComboBox1.setSelectedItem(token.nextToken());
            jComboBox2.setSelectedItem(token.nextToken());
            jComboBox3.setSelectedItem(token.nextToken());
            token = new StringTokenizer(modelo.getValueAt(ct, 0).toString(), "_");
            jComboBox10.setSelectedItem(token.nextToken());
            token.nextToken();
            token.nextToken();
            jComboBox13.setSelectedItem(token.nextToken());
            token = new StringTokenizer(modelo.getValueAt(ct, 3).toString(), "-");
            jComboBox6.setSelectedItem(token.nextToken());
            jComboBox5.setSelectedItem(obtener_mes(token.nextToken()));
            jComboBox4.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
            jTextPane1.setText(modelo.getValueAt(ct, 4).toString());
            jTabbedPane1.setSelectedIndex(0);
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem16MousePressed

    private void jMenuItem20MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem20MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            cargar_porpa(true);
            jButton5.setText("Modificar");
            if (modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                StringTokenizer token;
                jTextPane7.setText(modelo.getValueAt(ct, 7).toString());
                jComboBox17.setSelectedItem(modelo.getValueAt(ct, 9));
                if (modelo.getValueAt(ct, 10) != null) {
                    jComboBox18.setSelectedItem(modelo.getValueAt(ct, 10));
                }
                jComboBox19.setSelectedItem(modelo.getValueAt(ct, 11));
                jComboBox20.setSelectedItem(modelo.getValueAt(ct, 12));
                jComboBox21.setSelectedItem(modelo.getValueAt(ct, 13));
                jComboBox22.setSelectedItem(modelo.getValueAt(ct, 14));
                jComboBox23.setSelectedItem(modelo.getValueAt(ct, 15));
                jComboBox24.setSelectedItem(modelo.getValueAt(ct, 16));
                jComboBox60.setSelectedItem(modelo.getValueAt(ct, 18));
                if (modelo.getValueAt(ct, 19) != null) {
                    jComboBox25.setSelectedItem(modelo.getValueAt(ct, 19));
                }
                if (modelo.getValueAt(ct, 20) != null) {
                    if (modelo.getValueAt(ct, 20).toString().compareTo("Si") == 0) {
                        jComboBox26.setSelectedItem("Si");
                    } else {
                        jComboBox26.setSelectedItem("No");
                    }
                }
                if (modelo.getValueAt(ct, 21) != null) {
                    System.out.println("*" + modelo.getValueAt(ct, 21) + "*");
                    if (modelo.getValueAt(ct, 21).toString().compareTo("Si") == 0) {
                        jComboBox27.setSelectedItem("Si");
                    } else {
                        jComboBox27.setSelectedItem("No");
                    }
                }
                token = new StringTokenizer(modelo.getValueAt(ct, 22).toString());
                jComboBox28.setSelectedItem(token.nextToken());
                jComboBox32.setSelectedItem(modelo.getValueAt(ct, 23));
                if (modelo.getValueAt(ct, 24) != null) {
                    jComboBox29.setSelectedItem(modelo.getValueAt(ct, 24));
                }
                if (modelo.getValueAt(ct, 25) != null) {
                    jComboBox30.setSelectedItem(modelo.getValueAt(ct, 25));
                }
                jTextPane4.setText(modelo.getValueAt(ct, 26).toString());
                jTabbedPane1.setSelectedIndex(1);
            } else {
                JOptionPane.showMessageDialog(null, "No existe un proyecto que modificar", "Modificar Proyecto", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem20MousePressed

    private void jMenuItem21MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem21MousePressed
        // TODO add your handling code here:
        try {
            if (proyecto_activo()) {
                cargar_crear_macro();
                plani();
                ingen();
                idp();
                cargar_porpa(true);
                if (modelo.getValueAt(ct, 28).toString().compareTo("") != 0) {
                    StringTokenizer token;
                    jComboBox33.setSelectedItem(modelo.getValueAt(ct, 29));
                    if (modelo.getValueAt(ct, 30) != null) {
                        jTextField2.setText(modelo.getValueAt(ct, 30).toString());
                    }
                    if (modelo.getValueAt(ct, 31) != null) {
                        jTextPane8.setText(modelo.getValueAt(ct, 31).toString());
                    }
                    if (modelo.getValueAt(ct, 32) != null) {
                        jTextPane9.setText(modelo.getValueAt(ct, 32).toString());
                    }
                    if (modelo.getValueAt(ct, 33) != null) {
                        jTextField4.setText(modelo.getValueAt(ct, 33).toString());
                    }
                    jComboBox34.setSelectedItem(modelo.getValueAt(ct, 34));
                    jComboBox61.setSelectedItem(modelo.getValueAt(ct, 36));
                    if (modelo.getValueAt(ct, 37) != null) {
                        sql = "SELECT sem_publicacion "
                                + "FROM proyectos_ingenieria "
                                + "WHERE idproyecto_ingenieria = " + modelo.getValueAt(ct, 28);
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            token = new StringTokenizer(rs.getString(1), "-");
                            jComboBox86.setSelectedItem(token.nextToken());
                            jComboBox85.setSelectedItem(obtener_mes(token.nextToken()));
                            jComboBox84.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                        }
                    }
                    if (modelo.getValueAt(ct, 38) != null) {
                        jComboBox43.setSelectedItem(modelo.getValueAt(ct, 38));
                    }
                    if (modelo.getValueAt(ct, 39) != null) {
                        sql = "SELECT sem_plan_imp "
                                + "FROM proyectos_ingenieria "
                                + "WHERE idproyecto_ingenieria = " + modelo.getValueAt(ct, 28);
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            token = new StringTokenizer(rs.getString(1), "-");
                            jComboBox68.setSelectedItem(token.nextToken());
                            jComboBox67.setSelectedItem(obtener_mes(token.nextToken()));
                            jComboBox66.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                        }
                    }
                    if (modelo.getValueAt(ct, 40) != null) {
                        sql = "SELECT sem_plan_atp "
                                + "FROM proyectos_ingenieria "
                                + "WHERE idproyecto_ingenieria = " + modelo.getValueAt(ct, 28);
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            token = new StringTokenizer(rs.getString(1), "-");
                            jComboBox71.setSelectedItem(token.nextToken());
                            jComboBox70.setSelectedItem(obtener_mes(token.nextToken()));
                            jComboBox69.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                        }
                    }
                    if (modelo.getValueAt(ct, 41) != null) {
                        sql = "SELECT sem_real_atp "
                                + "FROM proyectos_ingenieria "
                                + "WHERE idproyecto_ingenieria = " + modelo.getValueAt(ct, 28);
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            token = new StringTokenizer(rs.getString(1), "-");
                            jComboBox74.setSelectedItem(token.nextToken());
                            jComboBox73.setSelectedItem(obtener_mes(token.nextToken()));
                            jComboBox72.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                        }
                    }
                    if (modelo.getValueAt(ct, 42) != null) {
                        sql = "SELECT sem_real_gestion "
                                + "FROM proyectos_ingenieria "
                                + "WHERE idproyecto_ingenieria = " + modelo.getValueAt(ct, 28);
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            token = new StringTokenizer(rs.getString(1), "-");
                            jComboBox77.setSelectedItem(token.nextToken());
                            jComboBox76.setSelectedItem(obtener_mes(token.nextToken()));
                            jComboBox75.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                        }
                    }
                    if (modelo.getValueAt(ct, 43) != null) {
                        sql = "SELECT sem_real_sart "
                                + "FROM proyectos_ingenieria "
                                + "WHERE idproyecto_ingenieria = " + modelo.getValueAt(ct, 28);
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            token = new StringTokenizer(rs.getString(1), "-");
                            jComboBox80.setSelectedItem(token.nextToken());
                            jComboBox79.setSelectedItem(obtener_mes(token.nextToken()));
                            jComboBox78.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                        }
                    }
                    if (modelo.getValueAt(ct, 44) != null) {
                        sql = "SELECT sem_pes "
                                + "FROM proyectos_ingenieria "
                                + "WHERE idproyecto_ingenieria = " + modelo.getValueAt(ct, 28);
                        rs = con.solo_select(sql);
                        while (rs.next()) {
                            token = new StringTokenizer(rs.getString(1), "-");
                            jComboBox83.setSelectedItem(token.nextToken());
                            jComboBox82.setSelectedItem(obtener_mes(token.nextToken()));
                            jComboBox81.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                        }
                    }
                    token = new StringTokenizer(modelo.getValueAt(ct, 46).toString(), " ");
                    jComboBox41.setSelectedItem(token.nextToken());
                    if (modelo.getValueAt(ct, 47) != null) {
                        jComboBox42.setSelectedItem(modelo.getValueAt(ct, 47));
                    }
                    if (modelo.getValueAt(ct, 48) != null) {
                        jTextPane10.setText(modelo.getValueAt(ct, 48).toString());
                    }
                    jTabbedPane1.setSelectedIndex(3);
                } else {
                    JOptionPane.showMessageDialog(null, "No existe una ingenieria que modificar", "Modificar Ingenieria", JOptionPane.INFORMATION_MESSAGE);
                }
            } else {
                proyecto_inactivo();
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jMenuItem21MousePressed

    private void jMenuItem23MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem23MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            cargar_porpa(true);
            if (modelo.getValueAt(ct, 50).toString().compareTo("") != 0) {
                StringTokenizer token;
                jComboBox62.setSelectedItem(modelo.getValueAt(ct, 52));
                if (modelo.getValueAt(ct, 53) != null) {
                    token = new StringTokenizer(modelo.getValueAt(ct, 53).toString(), "-");
                    jComboBox47.setSelectedItem(token.nextToken());
                    jComboBox46.setSelectedItem(obtener_mes(token.nextToken()));
                    jComboBox45.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                }
                if (modelo.getValueAt(ct, 54) != null) {
                    token = new StringTokenizer(modelo.getValueAt(ct, 54).toString(), "-");
                    jComboBox50.setSelectedItem(token.nextToken());
                    jComboBox49.setSelectedItem(obtener_mes(token.nextToken()));
                    jComboBox48.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
                }
                token = new StringTokenizer(modelo.getValueAt(ct, 55).toString(), " ");
                jComboBox51.setSelectedItem(token.nextToken());
                if (modelo.getValueAt(ct, 56) != null) {
                    jComboBox52.setSelectedItem(modelo.getValueAt(ct, 56));
                }
                if (modelo.getValueAt(ct, 57) != null) {
                    jTextPane11.setText(modelo.getValueAt(ct, 57).toString());
                }
                jTabbedPane1.setSelectedIndex(4);
            } else {
                JOptionPane.showMessageDialog(null, "No existe una integracion de proyecto que modificar", "Modificar IDP", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem23MousePressed

    private void jMenuItem25MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem25MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            if (modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                cargar_porpa(true);
                String aux = "";
                if (JOptionPane.showConfirmDialog(null, "¿Esta seguro que desea eliminar el proyecto? (esto tambien eliminara las tareas asociadas a este)", "Eliminar Proyecto", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) == 0) {
                    aux = quitaEspacios(JOptionPane.showInputDialog(null, "Ingrese el motivo por el cual elimina el proyecto", "Motivo de Eliminacion", JOptionPane.QUESTION_MESSAGE));
                    if (aux.compareTo("") != 0) {
                        try {
                            sql = "update control_versiones set estatus = 2, personal_eliminacion = " + per + ", razon_eliminacion = '" + aux + "' where macroproyecto = '" + macro + "' and proyecto_planificacion = " + pro_pla + " and proyecto_ingenieria = " + pro_ing + " and proyecto_idp = " + pro_idp + " and estatus = 1;";
                            if (con.solo_update(sql) > 0) {
                                taimer = true;
                                timer.cancel();
                                cargar_tabla("");
                                JOptionPane.showMessageDialog(null, "Se ha eliminado el proyecto", "Eliminar Proyecto", JOptionPane.INFORMATION_MESSAGE);
                            }
                        } catch (SQLException ex) {
                            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    } else {
                        JOptionPane.showMessageDialog(null, "No se ha eliminado el proyecto, ya que la razon por la cual se elimina es de caracter obligatorio", "Eliminar Proyecto", JOptionPane.INFORMATION_MESSAGE);
                    }
                }
            } else {
                JOptionPane.showMessageDialog(null, "No existe un proyecto el cual se pueda eliminar", "Eliminar proyecto", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem25MousePressed

    private void jTextPane7FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane7FocusGained
        // TODO add your handling code here:
        if (jTextPane7.getText().compareTo("Ingrese un nombre") == 0) {
            jTextPane7.setText("");
        }
    }//GEN-LAST:event_jTextPane7FocusGained

    private void jTextPane7FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane7FocusLost
        // TODO add your handling code here:
        jTextPane7.setText(quitaEspacios(jTextPane7.getText()));
        if (jTextPane7.getText().compareTo("") == 0) {
            jTextPane7.setText("Ingrese un nombre");
        }
    }//GEN-LAST:event_jTextPane7FocusLost

    private void jButton12KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton12KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            pre_boton_12();
        }
    }//GEN-LAST:event_jButton12KeyPressed

    private void pre_boton_12() {
        try {
            boolean aux = false;
            sql = "select count(*) from tipos_tareas_areas, personal where tipos_tareas_areas.area = personal.area and personal.idpersonal = " + get_id_per(jComboBox55.getSelectedItem().toString()) + " and tipos_tareas_areas.tipo_tarea = (select idtipo_tarea from tipos_tareas where tipo = '" + jComboBox54.getSelectedItem() + "');";
            rs = con.solo_select(sql);
            rs.next();
            if (rs.getShort(1) > 0) {
                if (jButton12.getText().compareTo("Modificar") == 0) {
                    if (modelo2.getValueAt(ct2, 10).toString().compareTo("Culminada") != 0) {
                        if (jComboBox63.getSelectedItem().toString().compareTo("Tarea") != 0 && jComboBox64.getSelectedItem().toString().compareTo("Culminada") == 0) {
                            sql = "select estatus from tareas where idtarea = " + jComboBox63.getSelectedItem() + ";";
                            rs = con.solo_select(sql);
                            while (rs.next()) {
                                if (rs.getString(1).compareTo("5") == 0) {
                                    aux = true;
                                }
                            }
                        } else {
                            aux = true;
                        }
                        if (aux) {
                            if (jComboBox64.getSelectedItem().toString().compareTo("Culminada") == 0) {
                                if (JOptionPane.showConfirmDialog(null, "Esto significa que la tarea se ha terminado por completo y no podra ser modifica en un futuro, desea continuar?", "Modificar Tarea", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) != 0) {
                                    jComboBox64.setSelectedItem(modelo2.getValueAt(ct2, 10));
                                } else {
                                    boton_12();
                                }
                            } else {
                                boton_12();
                            }
                        } else {
                            JOptionPane.showMessageDialog(null, "No se permite culminar una tarea hasta que la tarea de la cual depende ésta no este culminada", "Modificar Tarea", JOptionPane.ERROR_MESSAGE);
                        }
                    } else {
                        JOptionPane.showMessageDialog(null, "No se permite modificar una tarea que se encuentra culminada", "Modificar Tarea", JOptionPane.ERROR_MESSAGE);
                    }
                } else {
                    boton_12();
                }
            } else {
                if (jComboBox54.getSelectedItem().toString().compareTo("Tareas") != 0) {
                    if (jButton12.getText().compareTo("Crear") == 0) {
                        JOptionPane.showMessageDialog(null, "El tipo de tarea y el personal al que va asignado la tarea deben pertenecer a la misma area", "Nueva Tarea", JOptionPane.ERROR_MESSAGE);
                    } else {
                        JOptionPane.showMessageDialog(null, "El tipo de tarea y el personal al que va asignado la tarea deben pertenecer a la misma area", "Modificar Tarea", JOptionPane.ERROR_MESSAGE);
                    }
                } else {
                    boton_12();
                }
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void boton_12() {
        boolean[] hh = new boolean[2];
        hh[0] = jComboBox54.getSelectedItem().toString().compareTo("Tareas") != 0;
        hh[1] = jTextPane13.getText().compareTo("Ingrese observacion") != 0 && jTextPane13.getText().compareTo("") != 0;
        if (hh[0] && hh[1] && diferencia_fecha_actual(jComboBox56.getSelectedItem().toString(), jComboBox57.getSelectedItem().toString(), jComboBox58.getSelectedItem().toString())) {
            try {
                String aux = hora_actual(), auxx = "true";
                if (jButton12.getText().compareTo("Crear") == 0) {
                    sql = "insert into tareas (control_version,creador,responsable,tipo_tarea,observacion,fecha_requerida,fecha_creacion,hora_creacion,estatus) values(" + cv + "," + per + "," + get_id_per(jComboBox55.getSelectedItem().toString()) + "," + get_id_t_t(jComboBox54.getSelectedItem().toString()) + ",'" + jTextPane13.getText() + "','" + jComboBox58.getSelectedItem() + "-" + obtener_mes_int(jComboBox57.getSelectedItem().toString()) + "-" + jComboBox56.getSelectedItem() + "','" + fecha_actual() + "','" + aux + "',1);";
                    con.solo_insert(sql);
                    JOptionPane.showMessageDialog(null, "Se ha creado la tarea", "Crear Tarea", JOptionPane.INFORMATION_MESSAGE);
                } else {
                    if (jComboBox63.getSelectedItem().toString().compareTo("Tarea") != 0) {
                        auxx = jComboBox63.getSelectedItem().toString();
                        while (true) {
                            sql = "select tarea from tareas where idtarea = " + auxx + ";";
                            rs = con.solo_select(sql);
                            while (rs.next()) {
                                if (rs.getString(1) != null) {
                                    if (ts.compareTo(rs.getString(1)) == 0) {
                                        auxx = "false";
                                        break;
                                    } else {
                                        auxx = rs.getString(1);
                                    }
                                } else {
                                    auxx = "true";
                                    break;
                                }
                            }
                            if (auxx.compareTo("false") == 0 || auxx.compareTo("true") == 0) {
                                break;
                            }
                        }
                    }
                    if (auxx.compareTo("true") == 0) {
                        sql = "update tareas set creador = " + per + ", responsable = " + get_id_per(jComboBox55.getSelectedItem().toString()) + ", tipo_tarea = " + get_id_t_t(jComboBox54.getSelectedItem().toString()) + ", observacion = '" + jTextPane13.getText() + "', fecha_requerida = '" + jComboBox58.getSelectedItem() + "-" + obtener_mes_int(jComboBox57.getSelectedItem().toString()) + "-" + jComboBox56.getSelectedItem() + "', fecha_creacion = '" + fecha_actual() + "', hora_creacion = '" + aux + "', estatus = " + get_id_estatus(jComboBox64.getSelectedItem().toString()) + " where idtarea = " + ts + ";";//falta el estatus
                        con.solo_update(sql);
                        JOptionPane.showMessageDialog(null, "Se ha modificado la tarea", "Modificar Tarea", JOptionPane.INFORMATION_MESSAGE);
                    }
                }
                if (auxx.compareTo("true") == 0) {
                    if (jComboBox63.getSelectedItem().toString().compareTo("Tarea") != 0) {
                        sql = "update tareas set tarea = " + jComboBox63.getSelectedItem() + " where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    } else {
                        sql = "update tareas set tarea = null where creador = " + per + " and fecha_creacion = '" + fecha_actual() + "' and hora_creacion = '" + aux + "';";
                    }
                    con.solo_update(sql);
                } else {
                    JOptionPane.showMessageDialog(null, "No se permite crear ciclos de tareas", "Modificar Tarea", JOptionPane.ERROR_MESSAGE);
                }
                taimer2 = true;
                if (t2) {
                    timer2.stop();
                } else {
                    t2 = true;
                }
                cargar_tabla_tarea(0);
                tareas.setVisible(false);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            if (!diferencia_fecha_actual(jComboBox56.getSelectedItem().toString(), jComboBox57.getSelectedItem().toString(), jComboBox58.getSelectedItem().toString())) {
                if (jLabel28.getText().compareTo("Dia de la semana") == 0) {
                    JOptionPane.showMessageDialog(null, "La fecha introducida es incorrecta", "Crear Tarea", JOptionPane.ERROR_MESSAGE);
                } else {
                    JOptionPane.showMessageDialog(null, "La fecha requerida no puede ser menor a la fecha actual", "Crear Tarea", JOptionPane.INFORMATION_MESSAGE);
                }
            } else {
                JOptionPane.showMessageDialog(null, "Debe llenar todos los campos obligatorios", "Crear Tarea", JOptionPane.ERROR_MESSAGE);
            }
        }
    }

    private void jComboBox54ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox54ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox54.getSelectedItem().toString().compareTo("Tareas") != 0 && c2_12) {
            c2_12 = false;
            try {
                sql = "select descripcion from tipos_tareas where tipo = '" + jComboBox54.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    jTextPane12.setText(rs.getString(1));
                }
                jComboBox55.setEnabled(true);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
            c2_12 = true;
        } else {
            jTextPane12.setText("");
            jComboBox55.setEnabled(false);
        }
    }//GEN-LAST:event_jComboBox54ItemStateChanged

    private void jMenuItem31MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem31MousePressed
        // TODO add your handling code here:
        String aux = "";
        if (JOptionPane.showConfirmDialog(null, "Esta seguro que desea eliminar la tarea Nro " + ts + " ?", "Eliminar Tarea", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) == 0) {
            try {
                sql = "select count(*) from tareas where tarea = " + ts + " and estatus != 2;";
                rs = con.solo_select(sql);
                rs.next();
                if (rs.getShort(1) == 0) {
                    aux = quitaEspacios(JOptionPane.showInputDialog(null, "Ingrese el motivo por el cual elimina la tarea", "Motivo de Eliminacion", JOptionPane.QUESTION_MESSAGE));
                    if (aux.compareTo("") != 0) {
                        sql = "update tareas set estatus = 2, personal_eliminacion = " + per + ", razon_eliminacion = '" + aux + "' where idtarea = " + ts + ";";
                        if (con.solo_update(sql) > 0) {
                            taimer2 = true;
                            if (t2) {
                                timer2.stop();
                            } else {
                                t2 = true;
                            }
                            cargar_tabla_tarea(0);
                            JOptionPane.showMessageDialog(null, "Se ha eliminado la tarea", "Eliminar Tarea", JOptionPane.INFORMATION_MESSAGE);
                        }
                    } else {
                        JOptionPane.showMessageDialog(null, "No se ha eliminado la tarea ya que el motivo de eliminacion no es valido", "Eliminar Tarea", JOptionPane.INFORMATION_MESSAGE);
                    }
                } else {
                    JOptionPane.showMessageDialog(null, "No se puede eliminar la tarea Nro " + ts + " hasta que elimine o cambie las tareas que dependen de esta", "Eliminar Tarea", JOptionPane.ERROR_MESSAGE);
                }
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_jMenuItem31MousePressed

    private void jMenuItem30MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem30MousePressed
        try {
            // TODO add your handling code here:
            StringTokenizer token;
            tareas.setTitle("Modificar Tarea");
            jButton12.setText("Modificar");
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            sql = "select idcontrol_version, macroproyecto, proyecto_planificacion, proyecto_ingenieria, proyecto_idp from control_versiones where idcontrol_version = (select control_version from tareas where idtarea = " + ts + ");";
            rs = con.solo_select(sql);
            while (rs.next()) {
                cv = rs.getShort(1);
                macro = rs.getString(2);
                pro_pla = rs.getShort(3);
                pro_ing = rs.getShort(4);
                pro_idp = rs.getShort(5);
            }
            jLabel30.setText(jTextField11.getText());
            jTextPane14.setText(jTextPane20.getText());
            jComboBox55.setModel(cargar_personal(false, 0));
            jComboBox55.setSelectedItem(modelo2.getValueAt(ct2, 2));
            jComboBox54.setModel(cargar_tipos_tareas());
            jComboBox54.setSelectedItem(modelo2.getValueAt(ct2, 4));
            jTextPane13.setText(modelo2.getValueAt(ct2, 6).toString());
            token = new StringTokenizer(modelo2.getValueAt(ct2, 7).toString(), "-");
            jComboBox58.setSelectedItem(token.nextToken());
            jComboBox57.setSelectedItem(obtener_mes(token.nextToken()));
            jComboBox56.setSelectedItem(String.valueOf(Integer.parseInt(token.nextToken())));
            jComboBox63.setModel(cargar_tareas_macro());
            if (modelo2.getValueAt(ct2, 9) != null) {
                jComboBox63.setSelectedItem(modelo2.getValueAt(ct2, 9).toString());
            } else {
                jComboBox63.setSelectedItem("Tarea");
            }
            jComboBox64.setModel(cargar_estatus());
            jComboBox64.setEnabled(true);
            jComboBox64.setSelectedItem(modelo2.getValueAt(ct2, 10));
            tareas.setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jMenuItem30MousePressed

    private void jComboBox63ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox63ItemStateChanged
        // TODO add your handling code here:
        if (jButton12.getText().compareTo("Modificar") == 0 && jComboBox63.getSelectedItem().toString().compareTo(ts) == 0) {
            jComboBox63.setSelectedItem("Tarea");
        }
    }//GEN-LAST:event_jComboBox63ItemStateChanged

    private void jButton12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton12MouseClicked
        // TODO add your handling code here:
        pre_boton_12();
    }//GEN-LAST:event_jButton12MouseClicked

    private void manualMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_manualMousePressed
        // TODO add your handling code here:
        Object options[] = {"Copia online", "Copia local"};
        int aux = JOptionPane.showOptionDialog(null, "¿A que copia del manual desea acceder? (se recomienda la copia online)", "Opciones Manual", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
        if (aux == 0) {
            try {
                java.awt.Desktop desktop = java.awt.Desktop.getDesktop();
                desktop.browse(new URI("https://docs.google.com/document/d/1qCFwpSWjYQS94l0wuSS79yQkRnMDN6lR1Fw8HoWHhoU/edit?hl=es"));
            } catch (IOException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            } catch (URISyntaxException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        if (aux == 1) {
            try {
                Process p = Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + ou.obtener_manual());
            } catch (IOException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_manualMousePressed

    private void tareasAsignadasMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tareasAsignadasMousePressed
        // TODO add your handling code here:
        taimer2 = true;
        if (t2) {
            timer2.stop();
        } else {
            t2 = true;
        }
        cargar_tabla_tarea(1);
        jTabbedPane1.setSelectedIndex(2);
    }//GEN-LAST:event_tareasAsignadasMousePressed

    private void tareasCreadasMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tareasCreadasMousePressed
        // TODO add your handling code here:
        taimer2 = true;
        if (t2) {
            timer2.stop();
        } else {
            t2 = true;
        }
        cargar_tabla_tarea(2);
        jTabbedPane1.setSelectedIndex(2);
    }//GEN-LAST:event_tareasCreadasMousePressed

    private void recargarListaMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_recargarListaMousePressed
        // TODO add your handling code here:
        busqueda = "";
        busqueda();
        cargar_crear_macro();
        plani();
        ingen();
        idp();
        macro = "";
        pro_pla = 0;
        pro_ing = 0;
        pro_idp = 0;
        cv = 0;
        cargar_porpa();
        tareas.setVisible(false);
        presupuesto.setVisible(false);
        reporteErrores.setVisible(false);
        timer.cancel();
        taimer = true;
        cargar_tabla("");
}//GEN-LAST:event_recargarListaMousePressed

    private void jMenuItem2MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem2MousePressed
        // TODO add your handling code here:
        if (proyecto_activo()) {
            cargar_crear_macro();
            plani();
            ingen();
            idp();
            cargar_porpa(true);
            if (modelo.getValueAt(ct, 6).toString().compareTo("") != 0) {
                jTextField12.setText(jTextField11.getText());
                jTextPane15.setText(jTextPane20.getText());
                if (modelo.getValueAt(ct, 59).toString().compareTo("0") != 0) {
                    jTextField3.setText(modelo.getValueAt(ct, 59).toString());
                    jCheckBox2.setSelected(false);
                } else {
                    jCheckBox2.setSelected(true);
                }
                if (modelo.getValueAt(ct, 60).toString().compareTo("0") != 0) {
                    jTextField5.setText(modelo.getValueAt(ct, 60).toString());
                    jCheckBox3.setSelected(false);
                } else {
                    jCheckBox3.setSelected(true);
                }
                if (modelo.getValueAt(ct, 61).toString().compareTo("0") != 0) {
                    jTextField6.setText(modelo.getValueAt(ct, 61).toString());
                    jCheckBox4.setSelected(false);
                } else {
                    jCheckBox4.setSelected(true);
                }
                jTextField7.setText(modelo.getValueAt(ct, 62).toString());
                presupuesto.setVisible(true);
            } else {
                JOptionPane.showMessageDialog(null, "Debe exitir un proyecto", "Ajustar Presupuesto", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            proyecto_inactivo();
        }
    }//GEN-LAST:event_jMenuItem2MousePressed

    private void jTextField3FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField3FocusGained
        // TODO add your handling code here:
        jTextField3.setSelectionStart(0);
        jTextField3.setSelectionEnd(jTextField3.getText().length());
    }//GEN-LAST:event_jTextField3FocusGained

    private void jTextField3FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField3FocusLost
        // TODO add your handling code here:
        if (jTextField3.getText().compareTo("") == 0) {
            jTextField3.setText("0");
        }
        jTextField3.setText(String.valueOf(Long.parseLong(jTextField3.getText()) + 0));
    }//GEN-LAST:event_jTextField3FocusLost

    private void jTextField3KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField3KeyReleased
        // TODO add your handling code here:
        String aux = "";
        for (int i = 0; i < jTextField3.getText().length(); i++) {
            if (jTextField3.getText().charAt(i) == '0' || jTextField3.getText().charAt(i) == '1' || jTextField3.getText().charAt(i) == '2' || jTextField3.getText().charAt(i) == '3' || jTextField3.getText().charAt(i) == '4' || jTextField3.getText().charAt(i) == '5' || jTextField3.getText().charAt(i) == '6' || jTextField3.getText().charAt(i) == '7' || jTextField3.getText().charAt(i) == '8' || jTextField3.getText().charAt(i) == '9') {
                aux = aux + jTextField3.getText().charAt(i);
            }
        }
        jTextField3.setText(aux);
        if (jTextField3.getText().compareTo("") == 0) {
            jTextField3.setText("0");
        }
        if (jTextField3.getText().length() > 19) {
            jTextField3.setText(jTextField3.getText().substring(0, 19));
        }
        jTextField3.setText(String.valueOf(Long.parseLong(jTextField3.getText())));
        sumar_presupuesto();
    }//GEN-LAST:event_jTextField3KeyReleased

    private void jTextField5FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField5FocusGained
        // TODO add your handling code here:
        jTextField5.setSelectionStart(0);
        jTextField5.setSelectionEnd(jTextField5.getText().length());
    }//GEN-LAST:event_jTextField5FocusGained

    private void jTextField5FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField5FocusLost
        // TODO add your handling code here:
        if (jTextField5.getText().compareTo("") == 0) {
            jTextField5.setText("0");
        }
        jTextField5.setText(String.valueOf(Long.parseLong(jTextField5.getText()) + 0));
    }//GEN-LAST:event_jTextField5FocusLost

    private void jTextField5KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField5KeyReleased
        // TODO add your handling code here:
        String aux = "";
        for (int i = 0; i < jTextField5.getText().length(); i++) {
            if (jTextField5.getText().charAt(i) == '0' || jTextField5.getText().charAt(i) == '1' || jTextField5.getText().charAt(i) == '2' || jTextField5.getText().charAt(i) == '3' || jTextField5.getText().charAt(i) == '4' || jTextField5.getText().charAt(i) == '5' || jTextField5.getText().charAt(i) == '6' || jTextField5.getText().charAt(i) == '7' || jTextField5.getText().charAt(i) == '8' || jTextField5.getText().charAt(i) == '9') {
                aux = aux + jTextField5.getText().charAt(i);
            }
        }
        jTextField5.setText(aux);
        if (jTextField5.getText().compareTo("") == 0) {
            jTextField5.setText("0");
        }
        if (jTextField5.getText().length() > 19) {
            jTextField5.setText(jTextField5.getText().substring(0, 19));
        }
        jTextField5.setText(String.valueOf(Long.parseLong(jTextField5.getText())));
        sumar_presupuesto();
    }//GEN-LAST:event_jTextField5KeyReleased

    private void jTextField6FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField6FocusGained
        // TODO add your handling code here:
        jTextField6.setSelectionStart(0);
        jTextField6.setSelectionEnd(jTextField6.getText().length());
    }//GEN-LAST:event_jTextField6FocusGained

    private void jTextField6FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField6FocusLost
        // TODO add your handling code here:
        if (jTextField6.getText().compareTo("") == 0) {
            jTextField6.setText("0");
        }
        jTextField6.setText(String.valueOf(Long.parseLong(jTextField6.getText()) + 0));
    }//GEN-LAST:event_jTextField6FocusLost

    private void jTextField6KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField6KeyReleased
        // TODO add your handling code here:
        String aux = "";
        for (int i = 0; i < jTextField6.getText().length(); i++) {
            if (jTextField6.getText().charAt(i) == '0' || jTextField6.getText().charAt(i) == '1' || jTextField6.getText().charAt(i) == '2' || jTextField6.getText().charAt(i) == '3' || jTextField6.getText().charAt(i) == '4' || jTextField6.getText().charAt(i) == '5' || jTextField6.getText().charAt(i) == '6' || jTextField6.getText().charAt(i) == '7' || jTextField6.getText().charAt(i) == '8' || jTextField6.getText().charAt(i) == '9') {
                aux = aux + jTextField6.getText().charAt(i);
            }
        }
        jTextField6.setText(aux);
        if (jTextField6.getText().compareTo("") == 0) {
            jTextField6.setText("0");
        }
        if (jTextField6.getText().length() > 19) {
            jTextField6.setText(jTextField6.getText().substring(0, 19));
        }
        jTextField6.setText(String.valueOf(Long.parseLong(jTextField6.getText())));
        sumar_presupuesto();
    }//GEN-LAST:event_jTextField6KeyReleased

    private void sumar_presupuesto() {
        long aux = 0;
        if (jTextField3.isEnabled()) {
            aux += Long.parseLong(jTextField3.getText());
        }
        if (jTextField5.isEnabled()) {
            aux += Long.parseLong(jTextField5.getText());
        }
        if (jTextField6.isEnabled()) {
            aux += Long.parseLong(jTextField6.getText());
        }
        jTextField7.setText(String.valueOf(aux));
    }

    private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed
        // TODO add your handling code here:
        if (jCheckBox1.isSelected()) {
            jButton3.setVisible(true);
        } else {
            jButton3.setVisible(false);
        }
    }//GEN-LAST:event_jCheckBox1ActionPerformed

    private void jButton13KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton13KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            boton_13();
        }
    }//GEN-LAST:event_jButton13KeyPressed

    private void boton_13() {
        try {
            sql = "update control_versiones set pre_equipamiento = " + jTextField3.getText() + ", pre_servicio = " + jTextField5.getText() + ", pre_otros = " + jTextField6.getText() + ", pre_total = " + jTextField7.getText() + ", personal_pre = " + per + " where idcontrol_version = " + cv + ";";
            if (con.solo_update(sql) > 0) {
                modelo.setValueAt(jTextField3.getText(), ct, 59);
                modelo.setValueAt(jTextField5.getText(), ct, 60);
                modelo.setValueAt(jTextField6.getText(), ct, 61);
                modelo.setValueAt(jTextField7.getText(), ct, 62);
                JOptionPane.showMessageDialog(null, "Se ha ajustado el presupuesto satisfactoriamente", "Ajustar Presupuesto", JOptionPane.INFORMATION_MESSAGE);
            }
            presupuesto.setVisible(false);
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void jButton13MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton13MouseClicked
        // TODO add your handling code here:
        boton_13();
    }//GEN-LAST:event_jButton13MouseClicked

    private void jCheckBox4ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBox4ItemStateChanged
        // TODO add your handling code here:
        if (jCheckBox4.isSelected()) {
            jTextField6.setEnabled(false);
            jTextField6.setText("0");
        } else {
            jTextField6.setEnabled(true);
        }
        sumar_presupuesto();
    }//GEN-LAST:event_jCheckBox4ItemStateChanged

    private void jCheckBox3ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBox3ItemStateChanged
        // TODO add your handling code here:
        if (jCheckBox3.isSelected()) {
            jTextField5.setEnabled(false);
            jTextField5.setText("0");
        } else {
            jTextField5.setEnabled(true);
        }
        sumar_presupuesto();
    }//GEN-LAST:event_jCheckBox3ItemStateChanged

    private void jCheckBox2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBox2ItemStateChanged
        // TODO add your handling code here:
        if (jCheckBox2.isSelected()) {
            jTextField3.setEnabled(false);
            jTextField3.setText("0");
        } else {
            jTextField3.setEnabled(true);
        }
        sumar_presupuesto();
    }//GEN-LAST:event_jCheckBox2ItemStateChanged

    private void r800x600ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_r800x600ItemStateChanged
        // TODO add your handling code here:
        if (r800x600.isSelected()) {
            ajustar_resolucion(800, 600);
        }
    }//GEN-LAST:event_r800x600ItemStateChanged

    private void r1024x768ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_r1024x768ItemStateChanged
        // TODO add your handling code here:
        if (r1024x768.isSelected()) {
            ajustar_resolucion(1024, 768);
        }
    }//GEN-LAST:event_r1024x768ItemStateChanged

    private void r1280x1024ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_r1280x1024ItemStateChanged
        // TODO add your handling code here:
        if (r1280x1024.isSelected()) {
            ajustar_resolucion(1280, 1024);
        }
    }//GEN-LAST:event_r1280x1024ItemStateChanged

    private void sistemaCreditosMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_sistemaCreditosMousePressed
        // TODO add your handling code here:
        creditos.setVisible(true);
    }//GEN-LAST:event_sistemaCreditosMousePressed

    private void jLabel119MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel119MousePressed
        // TODO add your handling code here:
        try {
            java.awt.Desktop desktop = java.awt.Desktop.getDesktop();
            desktop.browse(new URI("http://www.gnu.org/licenses/"));
        } catch (IOException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        } catch (URISyntaxException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jLabel119MousePressed

    private void licenciaMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_licenciaMousePressed
        // TODO add your handling code here:ç
        Object options[] = {"Copia online", "Copia local"};
        int aux = JOptionPane.showOptionDialog(null, "¿A que copia de la licencia desea acceder? (se recomienda la copia online)", "Opciones Licencia", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
        if (aux == 0) {
            try {
                java.awt.Desktop desktop = java.awt.Desktop.getDesktop();
                desktop.browse(new URI("http://www.gnu.org/copyleft/gpl.txt"));
            } catch (IOException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            } catch (URISyntaxException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        if (aux == 1) {
            try {
                Process p = Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + ou.obtener_licencia());
            } catch (IOException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_licenciaMousePressed

    private void jComboBox19ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox19ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox19.getSelectedItem().toString().compareTo("Proveedor") == 0) {
            jComboBox20.setModel(cargar_equipos(false, jComboBox19));
        } else {
            jComboBox20.setModel(cargar_equipos(true, jComboBox19));
        }
    }//GEN-LAST:event_jComboBox19ItemStateChanged

    private void hojaCalculoMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_hojaCalculoMousePressed
        // TODO add your handling code here:
        boolean auxt;
        String aux = "";
        String[] nombres = {/*
             * Macroproyecto
             */"Codigo", "Macroproyecto", "Fecha de Creacion", "Fecha Requerida", "Descripcion", "Creado por",
            /*
             * Planificacion
             */ "Identificador de Proyecto", "Proyecto", "Fecha de Entrega", "Estacion", "Punto de Repeticion", "Proveedor", "Equipo", "Region", "Año de Compra", "Mes Requerido", "Prioridad", "Creador por", "Asignado a", "Radios Gestionables", "Migracion", "Rearreglo", "Avance Planificacion", "Linea Base", "Area (Retraso)", "Tipo de Mci", "Descripcion", "Px",
            /*
             * Ingenieria
             */ "Identificador de Ingenieria", "Mes Planificado", "PEP Proyecto", "DOC Compra Equipo", "DOC Compra Servicio", "Nº Reserva", "Area de Ingenieria", "Creado por", "Asiganado a", "Semana de Publicacion Ingenieria", "Año de Ejecucion", "Semana Planificada de Implementacion", "Semana Planificada de ATP", "Semana Real de ATP", "Semana Real de Gestion", "Semana Real SART", "Semana de Puesta en Servicio", "Semanas Transcurridas", "Avance de Ingenieria", "Area (Retraso)", "Observacion", "Ing",
            /*
             * IDP
             */ "Identificador de IDP", "Creador por", "Asigando a", "Fecha Planificada de PES", "Fecha Real de PES", "Avance de IDP", "Area (Retraso)", "Observacion", "IDP",
            /*
             * Presupuesto
             */ "Presupuesto Equipo", "Presupuesto Servicio", "Presupueso Otros", "Presupuesto Total"};
        int showSaveDialog = jFileChooser1.showSaveDialog(null);
        auxt = cargandoDatos.isVisible();
        if (showSaveDialog == 0 && auxt == false) {
            try {
                aux = jFileChooser1.getSelectedFile().getAbsolutePath();
                WritableWorkbook workbook = Workbook.createWorkbook(new File(aux + ".xls"));
                WritableSheet sheet = workbook.createSheet("Proyectos Existentes", 0);
                WritableFont arial10font = new WritableFont(WritableFont.ARIAL, 10, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.RED);
                WritableCellFormat arial10format = new WritableCellFormat(arial10font);
                for (int i = 0; i < modelo.getColumnCount(); i++) {
                    if (i <= 27) {
                        arial10font = new WritableFont(WritableFont.ARIAL, 10, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.RED);
                        arial10format = new WritableCellFormat(arial10font);
                    }
                    if (i > 27 && i <= 48) {
                        arial10font = new WritableFont(WritableFont.ARIAL, 10, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.BLUE);
                        arial10format = new WritableCellFormat(arial10font);
                    }
                    if (i > 49 && i <= 57) {
                        arial10font = new WritableFont(WritableFont.ARIAL, 10, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.ORANGE);
                        arial10format = new WritableCellFormat(arial10font);
                    }
                    if (i > 58) {
                        arial10font = new WritableFont(WritableFont.ARIAL, 10, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.BLACK);
                        arial10format = new WritableCellFormat(arial10font);
                    }
                    Label label = new Label(i, 0, nombres[i], arial10format);
                    sheet.addCell(label);
                }
                for (int i = 0; i < modelo.getColumnCount(); i++) {
                    for (int j = 0; j < modelo.getRowCount(); j++) {
                        if (modelo.getValueAt(j, i) != null) {
                            if ((i == 6 || i == 14 || i == 27 || i == 28 || i == 37 || i == 38 || i == 45 || i == 49 || i == 59 || i == 60 || i == 61 || i == 62) && modelo.getValueAt(j, i).toString().compareTo("") != 0) {
                                jxl.write.Number numero = new Number(i, j + 1, Integer.parseInt(modelo.getValueAt(j, i).toString()));
                                sheet.addCell(numero);
                            } else {
                                Label label = new Label(i, j + 1, modelo.getValueAt(j, i).toString());
                                sheet.addCell(label);
                            }
                        }
                    }
                }
                workbook.write();
                workbook.close();
                JOptionPane.showMessageDialog(null, "La creacion de la hoja de calculo se ha realizado con exito", "Exportacion a Hoja de Calculo", JOptionPane.INFORMATION_MESSAGE);
                Process p = Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + aux + ".xls");
            } catch (WriteException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                JOptionPane.showMessageDialog(null, "No se pudo crear el archivo ya que este se encuentra en uso, por favor cierrelo y vuelva a intentarlo", "Exportacion a Hoja de Calculo", JOptionPane.ERROR_MESSAGE);
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            if (auxt) {
                JOptionPane.showMessageDialog(null, "La creacion de la hoja de calculo se ha cancelado ya que no se han terminado de cargar los proyectos", "Exportacion a Hoja de Calculo", JOptionPane.ERROR_MESSAGE);
            } else {
                JOptionPane.showMessageDialog(null, "La creacion de la hoja de calculo se ha cancelado por el usuario", "Exportacion a Hoja de Calculo", JOptionPane.ERROR_MESSAGE);
            }
        }
    }//GEN-LAST:event_hojaCalculoMousePressed

    private void any_fecha(JComboBox jComboBoxDia, JComboBox jComboBoxMes, JComboBox jComboBoxAnno, JTextField jTextFieldSem) {
        try {
            int year = 0, month = 0, day = 0;
            year = Integer.parseInt(jComboBoxAnno.getSelectedItem().toString());
            day = Integer.parseInt(jComboBoxDia.getSelectedItem().toString());
            month = obtener_mes_int(jComboBoxMes.getSelectedItem().toString());
            if (day > 28) {
                if ((month == 4 || month == 6 || month == 9 || month == 11) && day > 30) {
                    jComboBoxDia.setSelectedItem("30");
                    day = 30;
                }
                if (month == 2) {
                    if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
                        jComboBoxDia.setSelectedItem("29");
                        day = 29;
                    } else {
                        jComboBoxDia.setSelectedItem("28");
                        day = 28;
                    }
                }
            }
            sql = "select extract (week from timestamp'" + year + "-" + month + "-" + day + "');";
            rs = con.solo_select(sql);
            while (rs.next()) {
                if (jTextFieldSem != null) {
                    jTextFieldSem.setText(rs.getString(1));
                }
            }
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void jComboBox66ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox66ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox66.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox67.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox68.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox66, jComboBox67, jComboBox68, jTextField14);
            c2_12 = true;
        } else {
            jTextField14.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox66ItemStateChanged

    private void jComboBox68ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox68ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox66.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox67.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox68.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox66, jComboBox67, jComboBox68, jTextField14);
            c2_12 = true;
        } else {
            jTextField14.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox68ItemStateChanged

    private void jComboBox67ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox67ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox66.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox67.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox68.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox66, jComboBox67, jComboBox68, jTextField14);
            c2_12 = true;
        } else {
            jTextField14.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox67ItemStateChanged

    private void jComboBox69ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox69ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox69.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox70.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox71.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox69, jComboBox70, jComboBox71, jTextField15);
            c2_12 = true;
        } else {
            jTextField15.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox69ItemStateChanged

    private void jComboBox70ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox70ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox69.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox70.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox71.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox69, jComboBox70, jComboBox71, jTextField15);
            c2_12 = true;
        } else {
            jTextField15.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox70ItemStateChanged

    private void jComboBox71ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox71ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox69.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox70.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox71.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox69, jComboBox70, jComboBox71, jTextField15);
            c2_12 = true;
        } else {
            jTextField15.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox71ItemStateChanged

    private void jComboBox72ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox72ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox72.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox73.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox74.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox72, jComboBox73, jComboBox74, jTextField16);
            c2_12 = true;
        } else {
            jTextField16.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox72ItemStateChanged

    private void jComboBox73ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox73ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox72.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox73.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox74.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox72, jComboBox73, jComboBox74, jTextField16);
            c2_12 = true;
        } else {
            jTextField16.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox73ItemStateChanged

    private void jComboBox74ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox74ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox72.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox73.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox74.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox72, jComboBox73, jComboBox74, jTextField16);
            c2_12 = true;
        } else {
            jTextField16.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox74ItemStateChanged

    private void jComboBox75ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox75ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox75.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox76.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox77.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox75, jComboBox76, jComboBox77, jTextField17);
            c2_12 = true;
        } else {
            jTextField17.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox75ItemStateChanged

    private void jComboBox76ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox76ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox75.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox76.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox77.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox75, jComboBox76, jComboBox77, jTextField17);
            c2_12 = true;
        } else {
            jTextField17.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox76ItemStateChanged

    private void jComboBox77ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox77ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox75.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox76.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox77.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox75, jComboBox76, jComboBox77, jTextField17);
            c2_12 = true;
        } else {
            jTextField17.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox77ItemStateChanged

    private void jComboBox78ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox78ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox78.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox79.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox80.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox78, jComboBox79, jComboBox80, jTextField18);
            c2_12 = true;
        } else {
            jTextField18.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox78ItemStateChanged

    private void jComboBox79ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox79ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox78.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox79.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox80.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox78, jComboBox79, jComboBox80, jTextField18);
            c2_12 = true;
        } else {
            jTextField18.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox79ItemStateChanged

    private void jComboBox80ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox80ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox78.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox79.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox80.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox78, jComboBox79, jComboBox80, jTextField18);
            c2_12 = true;
        } else {
            jTextField18.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox80ItemStateChanged

    private void jComboBox81ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox81ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox81.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox82.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox83.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox81, jComboBox82, jComboBox83, jTextField19);
            c2_12 = true;
        } else {
            jTextField19.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox81ItemStateChanged

    private void jComboBox82ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox82ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox81.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox82.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox83.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox81, jComboBox82, jComboBox83, jTextField19);
            c2_12 = true;
        } else {
            jTextField19.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox82ItemStateChanged

    private void jComboBox83ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox83ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox81.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox82.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox83.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox81, jComboBox82, jComboBox83, jTextField19);
            c2_12 = true;
        } else {
            jTextField19.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox83ItemStateChanged

    private void jComboBox84ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox84ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox84.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox85.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox86.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox84, jComboBox85, jComboBox86, jTextField20);
            c2_12 = true;
        } else {
            jTextField20.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox84ItemStateChanged

    private void jComboBox85ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox85ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox84.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox85.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox86.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox84, jComboBox85, jComboBox86, jTextField20);
            c2_12 = true;
        } else {
            jTextField20.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox85ItemStateChanged

    private void jComboBox86ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox86ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox84.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox85.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox86.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox84, jComboBox85, jComboBox86, jTextField20);
            c2_12 = true;
        } else {
            jTextField20.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox86ItemStateChanged

    private void jComboBox36ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox36ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            jComboBox87.setSelectedItem(jComboBox36.getSelectedItem());
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox36ItemStateChanged

    private void jComboBox37ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox37ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            jComboBox40.setSelectedItem(jComboBox37.getSelectedItem());
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox37ItemStateChanged

    private void jComboBox39ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox39ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            jComboBox59.setSelectedItem(jComboBox39.getSelectedItem());
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox39ItemStateChanged

    private void jComboBox40ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox40ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            jComboBox37.setSelectedItem(jComboBox40.getSelectedItem());
            c2_12 = true;
        }
        if (jComboBox88.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox90.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox40.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox88, jComboBox90, jComboBox40, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox40ItemStateChanged

    private void jComboBox59ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox59ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            jComboBox39.setSelectedItem(jComboBox59.getSelectedItem());
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox59ItemStateChanged

    private void jComboBox87ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox87ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            jComboBox36.setSelectedItem(jComboBox87.getSelectedItem());
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox87ItemStateChanged

    private void jComboBox88ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox88ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox88.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox90.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox40.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox88, jComboBox90, jComboBox40, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox88ItemStateChanged

    private void jComboBox89ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox89ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox92.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox89.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox91.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox92, jComboBox89, jComboBox91, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox89ItemStateChanged

    private void jComboBox90ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox90ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox88.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox90.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox40.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox88, jComboBox90, jComboBox40, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox90ItemStateChanged

    private void jComboBox91ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox91ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox92.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox89.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox91.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox92, jComboBox89, jComboBox91, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox91ItemStateChanged

    private void jTextPane2FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane2FocusGained
        // TODO add your handling code here:
        if (jTextPane2.getText().compareTo("Ingrese la descripcion del macroproyecto") == 0) {
            jTextPane2.setText("");
        }
    }//GEN-LAST:event_jTextPane2FocusGained

    private void jTextPane2FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane2FocusLost
        // TODO add your handling code here:
        jTextPane2.setText(quitaEspacios(jTextPane2.getText()));
        if (jTextPane2.getText().compareTo("") == 0) {
            jTextPane2.setText("Ingrese la descripcion del macroproyecto");
        }
    }//GEN-LAST:event_jTextPane2FocusLost

    private void jComboBox92ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox92ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox92.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox89.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox91.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox92, jComboBox89, jComboBox91, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox92ItemStateChanged

    private void jTextPane22FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane22FocusGained
        // TODO add your handling code here:
        if (jTextPane22.getText().compareTo("Ingrese un nombre") == 0) {
            jTextPane22.setText("");
        }
    }//GEN-LAST:event_jTextPane22FocusGained

    private void jTextPane22FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane22FocusLost
        // TODO add your handling code here:
        jTextPane22.setText(quitaEspacios(jTextPane22.getText()));
        if (jTextPane22.getText().compareTo("") == 0) {
            jTextPane22.setText("Ingrese un nombre");
        }
    }//GEN-LAST:event_jTextPane22FocusLost

    private void jComboBox97ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox97ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox97.getSelectedItem().toString().compareTo("1") == 0) {
                jComboBox103.setSelectedItem("100");
            } else {
                jComboBox103.setSelectedItem("%");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox97ItemStateChanged

    private void jTextPane23FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane23FocusGained
        // TODO add your handling code here:
        if (jTextPane23.getText().compareTo("Ingrese la descripcion del proyecto") == 0) {
            jTextPane23.setText("");
        }
    }//GEN-LAST:event_jTextPane23FocusGained

    private void jTextPane23FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane23FocusLost
        // TODO add your handling code here:
        jTextPane23.setText(quitaEspacios(jTextPane23.getText()));
        if (jTextPane23.getText().compareTo("") == 0) {
            jTextPane23.setText("Ingrese la descripcion del proyecto");
        }
    }//GEN-LAST:event_jTextPane23FocusLost

    private void jComboBox99ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox99ItemStateChanged
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBox99ItemStateChanged

    private void jComboBox101ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox101ItemStateChanged
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBox101ItemStateChanged

    private void jComboBox103ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox103ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox103.getSelectedItem().toString().compareTo("100") == 0) {
                jComboBox97.setSelectedItem("1");
            } else {
                jComboBox97.setSelectedItem("Px");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox103ItemStateChanged

    private void jComboBox104ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox104ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 && jComboBox104.getSelectedItem().toString().compareTo("Si") == 0) {
            c2_12 = false;
            jComboBox105.setSelectedItem("No");
            c2_12 = true;
        }
        if (c2_12 && jComboBox104.getSelectedItem().toString().compareTo("Rearreglo") == 0) {
            c2_12 = false;
            jComboBox105.setSelectedItem("Migracion");
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox104ItemStateChanged

    private void jComboBox105ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox105ItemStateChanged
        // TODO add your handling code here:
        if (c2_12 && jComboBox105.getSelectedItem().toString().compareTo("Si") == 0) {
            c2_12 = false;
            jComboBox104.setSelectedItem("No");
            c2_12 = true;
        }
        if (c2_12 && jComboBox105.getSelectedItem().toString().compareTo("Migracion") == 0) {
            c2_12 = false;
            jComboBox104.setSelectedItem("Rearreglo");
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox105ItemStateChanged

    private void jComboBox109ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox109ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox109.getSelectedItem().toString().compareTo("Proveedor") == 0) {
            jComboBox93.setModel(cargar_equipos(false, jComboBox109));
        } else {
            jComboBox93.setModel(cargar_equipos(true, jComboBox109));
        }
    }//GEN-LAST:event_jComboBox109ItemStateChanged

    private void jComboBox110ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox110ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox115.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox111.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox110.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox115, jComboBox111, jComboBox110, jTextField22);
            c2_12 = true;
        } else {
            jTextField22.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox110ItemStateChanged

    private void jComboBox111ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox111ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox115.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox111.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox110.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox115, jComboBox111, jComboBox110, jTextField22);
            c2_12 = true;
        } else {
            jTextField22.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox111ItemStateChanged

    private void jComboBox112ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox112ItemStateChanged
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBox112ItemStateChanged

    private void jComboBox113ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox113ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox132.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox114.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox113.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox132, jComboBox114, jComboBox113, jTextField23);
            c2_12 = true;
        } else {
            jTextField23.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox113ItemStateChanged

    private void jTextPane24FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane24FocusGained
        // TODO add your handling code here:
        if (jTextPane24.getText().compareTo("Ingrese observacion") == 0) {
            jTextPane24.setText("");
        }
    }//GEN-LAST:event_jTextPane24FocusGained

    private void jTextPane24FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane24FocusLost
        // TODO add your handling code here:
        jTextPane24.setText(quitaEspacios(jTextPane24.getText()));
        if (jTextPane24.getText().compareTo("") == 0) {
            jTextPane24.setText("Ingrese observacion");
        }
    }//GEN-LAST:event_jTextPane24FocusLost

    private void jComboBox114ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox114ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox132.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox114.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox113.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox132, jComboBox114, jComboBox113, jTextField23);
            c2_12 = true;
        } else {
            jTextField23.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox114ItemStateChanged

    private void jComboBox115ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox115ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox115.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox111.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox110.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox115, jComboBox111, jComboBox110, jTextField22);
            c2_12 = true;
        } else {
            jTextField22.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox115ItemStateChanged

    private void jComboBox117ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox117ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox117.getSelectedItem().toString().compareTo("100") == 0) {
                jComboBox121.setSelectedItem("1");
            } else {
                jComboBox121.setSelectedItem("Ing");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox117ItemStateChanged

    private void jComboBox119ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox119ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox119.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox126.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox127.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox119, jComboBox126, jComboBox127, jTextField28);
            c2_12 = true;
        } else {
            jTextField28.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox119ItemStateChanged

    private void jTextField24FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField24FocusGained
        // TODO add your handling code here:
        if (jTextField24.getText().compareTo("Ingrese PEP") == 0) {
            jTextField24.setText("");
        }
    }//GEN-LAST:event_jTextField24FocusGained

    private void jTextField24FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField24FocusLost
        // TODO add your handling code here:
        jTextField24.setText(quitaEspacios(jTextField24.getText()));
        if (jTextField24.getText().compareTo("") == 0) {
            jTextField24.setText("Ingrese PEP");
        }
    }//GEN-LAST:event_jTextField24FocusLost

    private void jComboBox121ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox121ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox121.getSelectedItem().toString().compareTo("1") == 0) {
                jComboBox117.setSelectedItem("100");
            } else {
                jComboBox117.setSelectedItem("%");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox121ItemStateChanged

    private void jTextPane26FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane26FocusGained
        // TODO add your handling code here:
        if (jTextPane26.getText().compareTo("Ingrese documento de compra") == 0) {
            jTextPane26.setText("");
        }
    }//GEN-LAST:event_jTextPane26FocusGained

    private void jTextPane26FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane26FocusLost
        // TODO add your handling code here:
        jTextPane26.setText(quitaEspacios(jTextPane26.getText()));
        if (jTextPane26.getText().compareTo("") == 0) {
            jTextPane26.setText("Ingrese documento de compra");
        }
    }//GEN-LAST:event_jTextPane26FocusLost

    private void jTextField26FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField26FocusGained
        // TODO add your handling code here:
        if (jTextField26.getText().compareTo("Nº de reserva") == 0) {
            jTextField26.setText("");
        }
    }//GEN-LAST:event_jTextField26FocusGained

    private void jTextField26FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField26FocusLost
        // TODO add your handling code here:
        jTextField26.setText(quitaEspacios(jTextField26.getText()));
        if (jTextField26.getText().compareTo("") == 0) {
            jTextField26.setText("Nº de reserva");
        }
    }//GEN-LAST:event_jTextField26FocusLost

    private void jComboBox123ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox123ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox125.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox124.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox123.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox125, jComboBox124, jComboBox123, jTextField30);
            c2_12 = true;
        } else {
            jTextField30.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox123ItemStateChanged

    private void jComboBox124ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox124ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox125.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox124.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox123.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox125, jComboBox124, jComboBox123, jTextField30);
            c2_12 = true;
        } else {
            jTextField30.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox124ItemStateChanged

    private void jComboBox125ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox125ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox125.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox124.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox123.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox125, jComboBox124, jComboBox123, jTextField30);
            c2_12 = true;
        } else {
            jTextField30.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox125ItemStateChanged

    private void jComboBox126ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox126ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox119.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox126.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox127.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox119, jComboBox126, jComboBox127, jTextField28);
            c2_12 = true;
        } else {
            jTextField28.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox126ItemStateChanged

    private void jComboBox127ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox127ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox119.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox126.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox127.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox119, jComboBox126, jComboBox127, jTextField28);
            c2_12 = true;
        } else {
            jTextField28.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox127ItemStateChanged

    private void jComboBox128ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox128ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox130.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox128.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox129.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox130, jComboBox128, jComboBox129, jTextField27);
            c2_12 = true;
        } else {
            jTextField27.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox128ItemStateChanged

    private void jComboBox129ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox129ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox130.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox128.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox129.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox130, jComboBox128, jComboBox129, jTextField27);
            c2_12 = true;
        } else {
            jTextField27.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox129ItemStateChanged

    private void jComboBox130ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox130ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox130.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox128.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox129.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox130, jComboBox128, jComboBox129, jTextField27);
            c2_12 = true;
        } else {
            jTextField27.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox130ItemStateChanged

    private void jTextPane27FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane27FocusGained
        // TODO add your handling code here:
        if (jTextPane27.getText().compareTo("Ingrese documento de compra") == 0) {
            jTextPane27.setText("");
        }
    }//GEN-LAST:event_jTextPane27FocusGained

    private void jTextPane27FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane27FocusLost
        // TODO add your handling code here:
        jTextPane27.setText(quitaEspacios(jTextPane27.getText()));
        if (jTextPane27.getText().compareTo("") == 0) {
            jTextPane27.setText("Ingrese documento de compra");
        }
    }//GEN-LAST:event_jTextPane27FocusLost

    private void jComboBox131ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox131ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox136.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox137.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox131.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox136, jComboBox137, jComboBox131, jTextField29);
            c2_12 = true;
        } else {
            jTextField29.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox131ItemStateChanged

    private void jComboBox132ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox132ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox132.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox114.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox113.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox132, jComboBox114, jComboBox113, jTextField23);
            c2_12 = true;
        } else {
            jTextField23.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox132ItemStateChanged

    private void jComboBox133ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox133ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox133.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox134.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox135.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox133, jComboBox134, jComboBox135, jTextField31);
            c2_12 = true;
        } else {
            jTextField31.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox133ItemStateChanged

    private void jComboBox134ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox134ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox133.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox134.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox135.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox133, jComboBox134, jComboBox135, jTextField31);
            c2_12 = true;
        } else {
            jTextField31.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox134ItemStateChanged

    private void jComboBox135ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox135ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox133.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox134.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox135.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox133, jComboBox134, jComboBox135, jTextField31);
            c2_12 = true;
        } else {
            jTextField31.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox135ItemStateChanged

    private void jComboBox136ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox136ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox136.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox137.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox131.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox136, jComboBox137, jComboBox131, jTextField29);
            c2_12 = true;
        } else {
            jTextField29.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox136ItemStateChanged

    private void jComboBox137ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox137ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox136.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox137.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox131.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox136, jComboBox137, jComboBox131, jTextField29);
            c2_12 = true;
        } else {
            jTextField29.setText("Semana");
        }
    }//GEN-LAST:event_jComboBox137ItemStateChanged

    private void jComboBox138ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox138ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox138.getSelectedItem().toString().compareTo("100") == 0) {
                jComboBox141.setSelectedItem("1");
            } else {
                jComboBox141.setSelectedItem("IDP");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox138ItemStateChanged

    private void jComboBox139ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox139ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox146.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox147.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox139.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox146, jComboBox147, jComboBox139, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox139ItemStateChanged

    private void jTextPane28FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane28FocusGained
        // TODO add your handling code here:
        if (jTextPane28.getText().compareTo("Ingrese observacion") == 0) {
            jTextPane28.setText("");
        }
    }//GEN-LAST:event_jTextPane28FocusGained

    private void jTextPane28FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextPane28FocusLost
        // TODO add your handling code here:
        jTextPane28.setText(quitaEspacios(jTextPane28.getText()));
        if (jTextPane28.getText().compareTo("") == 0) {
            jTextPane28.setText("Ingrese observacion");
        }
    }//GEN-LAST:event_jTextPane28FocusLost

    private void jComboBox141ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox141ItemStateChanged
        // TODO add your handling code here:
        if (c2_12) {
            c2_12 = false;
            if (jComboBox141.getSelectedItem().toString().compareTo("1") == 0) {
                jComboBox138.setSelectedItem("100");
            } else {
                jComboBox138.setSelectedItem("%");
            }
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox141ItemStateChanged

    private void jComboBox142ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox142ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox142.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox143.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox145.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox142, jComboBox143, jComboBox145, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox142ItemStateChanged

    private void jComboBox143ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox143ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox142.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox143.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox145.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox142, jComboBox143, jComboBox145, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox143ItemStateChanged

    private void jComboBox145ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox145ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox142.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox143.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox145.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox142, jComboBox143, jComboBox145, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox145ItemStateChanged

    private void jComboBox146ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox146ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox146.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox147.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox139.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox146, jComboBox147, jComboBox139, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox146ItemStateChanged

    private void jComboBox147ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox147ItemStateChanged
        // TODO add your handling code here:
        if (jComboBox146.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox147.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox139.getSelectedItem().toString().compareTo("Año") != 0 && c2_12) {
            c2_12 = false;
            any_fecha(jComboBox146, jComboBox147, jComboBox139, null);
            c2_12 = true;
        }
    }//GEN-LAST:event_jComboBox147ItemStateChanged

    private void jButton14KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton14KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            boton_14();
        }
    }//GEN-LAST:event_jButton14KeyPressed

    /**
     * Funcion que se encarga del sql que ejecuta la busqueda
     */
    private void boton_14() {
        try {
            busqueda = "SELECT "
                    + "control_versiones.macroproyecto, "
                    + "control_versiones.proyecto_planificacion, "
                    + "control_versiones.proyecto_ingenieria, "
                    + "control_versiones.proyecto_idp, "
                    + "control_versiones.pre_equipamiento, "
                    + "control_versiones.pre_servicio, "
                    + "control_versiones.pre_otros, "
                    + "control_versiones.pre_total "
                    + "FROM "
                    + "public.macroproyectos, "
                    + "public.control_versiones, "
                    + "public.proyectos_idp, "
                    + "public.proyectos_ingenieria, "
                    + "public.proyectos_planificacion "
                    + "WHERE "
                    + "macroproyectos.idmacroproyecto = control_versiones.macroproyecto AND "
                    + "proyectos_idp.idproyecto_idp = control_versiones.proyecto_idp AND "
                    + "proyectos_ingenieria.idproyecto_ingenieria = control_versiones.proyecto_ingenieria AND "
                    + "proyectos_planificacion.idproyecto_planificacion = control_versiones.proyecto_planificacion AND "
                    + "control_versiones.estatus = 1 ";
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox37.getSelectedItem().toString().compareTo("Año") != 0) {
                busqueda += "AND macroproyectos.idmacroproyecto like '%" + jComboBox37.getSelectedItem() + "%' ";
            }
            if (jComboBox59.getSelectedItem().toString().compareTo("Region") != 0) {
                busqueda += "AND macroproyectos.idmacroproyecto like '%" + jComboBox59.getSelectedItem() + "%' ";
            }
            if (jComboBox87.getSelectedItem().toString().compareTo("Tecnologia") != 0) {
                busqueda += "AND macroproyectos.idmacroproyecto like '%" + jComboBox87.getSelectedItem() + "%' ";
            }
            if (jComboBox38.getSelectedItem().toString().compareTo("CM") != 0) {
                busqueda += "AND macroproyectos.idmacroproyecto like '%" + jComboBox38.getSelectedItem() + "%' ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox35.getSelectedItem().toString().compareTo("Tipo de Trabajo") != 0) {
                busqueda += "AND macroproyectos.nombre like '%" + jComboBox35.getSelectedItem() + "%' ";
            }
            if (jComboBox36.getSelectedItem().toString().compareTo("Tecnologia") != 0) {
                busqueda += "AND macroproyectos.nombre like '%" + jComboBox36.getSelectedItem() + "%' ";
            }
            if (jComboBox39.getSelectedItem().toString().compareTo("Region") != 0) {
                busqueda += "AND macroproyectos.nombre like '%" + jComboBox39.getSelectedItem() + "%' ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox88.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox90.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox40.getSelectedItem().toString().compareTo("Año") != 0) {
                busqueda += "AND macroproyectos.fecha_realizacion = '" + jComboBox40.getSelectedItem() + "-" + obtener_mes_int(jComboBox90.getSelectedItem().toString()) + "-" + jComboBox88.getSelectedItem() + "' ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox92.getSelectedItem().toString().compareTo("Dia") != 0 && jComboBox89.getSelectedItem().toString().compareTo("Mes") != 0 && jComboBox91.getSelectedItem().toString().compareTo("Año") != 0) {
                busqueda += "AND macroproyectos.fecha_creacion = '" + jComboBox91.getSelectedItem() + "-" + obtener_mes_int(jComboBox89.getSelectedItem().toString()) + "-" + jComboBox92.getSelectedItem() + "' ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jTextPane2.getText().compareTo("Ingrese la descripcion del macroproyecto") != 0) {
                busqueda += "AND macroproyectos.descripcion like '%" + jTextPane2.getText() + "%' ";
            }
            ////////////////////////////////////////////////////////////////////////
            ////////////////////////////////////////////////////////////////////////
            if (jTextPane22.getText().compareTo("Ingrese un nombre") != 0) {
                busqueda += "AND proyectos_planificacion.nombre like '%" + jTextPane22.getText() + "%' ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox107.getSelectedItem().toString().compareTo("Estacion") != 0) {
                sql = "select idestacion from estaciones where nombre = '" + jComboBox107.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.estacion = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox108.getSelectedItem().toString().compareTo("Punto de Repeticion") != 0) {
                sql = "select idpunto_repeticion from puntos_repeticion where nombre = '" + jComboBox108.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.punto_repeticion = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox109.getSelectedItem().toString().compareTo("Proveedor") != 0) {
                sql = "select idproveedor from proveedores where nombre = '" + jComboBox109.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.proveedor = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox93.getSelectedItem().toString().compareTo("Equipo") != 0) {
                sql = "select idequipo from equipos where nombre = '" + jComboBox93.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.equipo = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox98.getSelectedItem().toString().compareTo("Region") != 0) {
                sql = "select idregion from regiones where nombre = '" + jComboBox98.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.region = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox96.getSelectedItem().toString().compareTo("Año") != 0) {
                busqueda += "AND proyectos_planificacion.anno_compra = " + jComboBox96.getSelectedItem() + " ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox101.getSelectedItem().toString().compareTo("Mes") != 0) {
                busqueda += "AND proyectos_planificacion.mes_requerido = '" + jComboBox101.getSelectedItem() + "' ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox99.getSelectedItem().toString().compareTo("Prioridad") != 0) {
                sql = "select idprioridad from prioridades where nombre = '" + jComboBox99.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.prioridad = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox148.getSelectedItem().toString().compareTo("Personal") != 0) {
                sql = "select idpersonal, nombre, apellido from personal;";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    if (jComboBox148.getSelectedItem().toString().compareTo(rs.getString(2) + " " + rs.getString(3)) == 0) {
                        busqueda += "AND proyectos_planificacion.creador = " + rs.getString(1) + " ";
                    }
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox94.getSelectedItem().toString().compareTo("Personal") != 0) {
                sql = "select idpersonal, nombre, apellido from personal;";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    if (jComboBox94.getSelectedItem().toString().compareTo(rs.getString(2) + " " + rs.getString(3)) == 0) {
                        busqueda += "AND proyectos_planificacion.responsable = " + rs.getString(1) + " ";
                    }
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox106.getSelectedItem().toString().compareTo("Radios Gestionables") != 0) {
                sql = "select idradio_gestionable from radios_gestionables where opcion = '" + jComboBox106.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.radio_gestionable = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox105.getSelectedItem().toString().compareTo("Migracion") != 0) {
                if (jComboBox105.getSelectedItem().toString().compareTo("Si") == 0) {
                    busqueda += "AND proyectos_planificacion.migracion is not null ";
                } else {
                    busqueda += "AND proyectos_planificacion.migracion is null ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox104.getSelectedItem().toString().compareTo("Rearreglo") != 0) {
                if (jComboBox104.getSelectedItem().toString().compareTo("Si") == 0) {
                    busqueda += "AND proyectos_planificacion.rearreglo is not null ";
                } else {
                    busqueda += "AND proyectos_planificacion.rearreglo is null ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox103.getSelectedItem().toString().compareTo("%") != 0) {
                busqueda += "AND proyectos_planificacion.avance_planificacion = " + jComboBox103.getSelectedItem() + " ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox95.getSelectedItem().toString().compareTo("Linea Base") != 0) {
                busqueda += "AND proyectos_planificacion.linea_base = '" + jComboBox95.getSelectedItem() + "' ";
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox102.getSelectedItem().toString().compareTo("Area") != 0) {
                sql = "select idarea from areas where nombre = '" + jComboBox102.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.area = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jComboBox100.getSelectedItem().toString().compareTo("Tipos de MCI") != 0) {
                sql = "select idtipo_mci from tipos_mci where tipo = '" + jComboBox100.getSelectedItem() + "';";
                rs = con.solo_select(sql);
                while (rs.next()) {
                    busqueda += "AND proyectos_planificacion.tipo_mci = " + rs.getString(1) + " ";
                }
            }
            ////////////////////////////////////////////////////////////////////////
            if (jTextPane23.getText().compareTo("Ingrese la descripcion del proyecto") != 0) {
                busqueda += "AND proyectos_planificacion.descripcion like '%" + jTextPane23.getText() + "%' ";
            }
            ////////////////////////////////////////////////////////////////////////
            busqueda += "ORDER BY ";
            preorder();
        } catch (SQLException ex) {
            Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void jButton14MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton14MouseClicked
        // TODO add your handling code here:
        boton_14();
    }//GEN-LAST:event_jButton14MouseClicked

    private void jButton15KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton15KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            boton_15();
        }
    }//GEN-LAST:event_jButton15KeyPressed

    /**
     *
     */
    private void boton_15() {
        busqueda = "";
        busqueda();
    }

    private void jButton15MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton15MouseClicked
        // TODO add your handling code here:
        boton_15();
    }//GEN-LAST:event_jButton15MouseClicked

    /**
     * Funcion que crea un registro en la base de datos sobre el ingreso y
     * salida de los usuarios del sistema tbu
     *
     * @param aux tipo de accion, 1 es para el ingreso, 2 para la salida
     */
    private void bitacora(int aux) {
        if (per != 0) {
            try {
                sql = "INSERT INTO bitacora (personal,tipo_accion,fecha,hora,ip) VALUES (" + per + "," + aux + ",'" + fecha_actual() + "','" + hora_actual() + "','" + java.net.InetAddress.getLocalHost().getHostAddress() + "');";
                con.solo_insert(sql);
            } catch (UnknownHostException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

    /**
     * Funcion que recibe un String y remueve los espacios innecesario
     *
     * @param texto al cual se le removeran los espacios innecesadio, ejemplo "
     * hola esto es un ejemplo "
     * @return String el texto ya procesado, ejemplo "hola esto es un ejemplo"
     */
    private String quitaEspacios(String texto) {
        if (texto != null) {
            StringTokenizer tokens = new StringTokenizer(texto);
            StringBuilder buff = new StringBuilder();
            while (tokens.hasMoreTokens()) {
                buff.append(" ").append(tokens.nextToken());
            }
            return buff.toString().trim();
        }
        return "";
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                try {
                    JFrame.setDefaultLookAndFeelDecorated(true);
                    JDialog.setDefaultLookAndFeelDecorated(true);
                    new Sistema_telefonica().setVisible(true);
                } catch (ClassNotFoundException ex) {
                    Logger.getLogger(Sistema_telefonica.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu ajustarResolucion;
    private javax.swing.JMenu ayuda;
    private javax.swing.JDialog cargandoDatos;
    private javax.swing.JMenuItem cerrarSesion;
    private javax.swing.JFrame creditos;
    private javax.swing.JMenu exportarExcel;
    private javax.swing.ButtonGroup grupoAjusteResolucion;
    private javax.swing.JMenuItem hojaCalculo;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton30;
    private javax.swing.JButton jButton37;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox3;
    private javax.swing.JCheckBox jCheckBox4;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox10;
    private javax.swing.JComboBox jComboBox100;
    private javax.swing.JComboBox jComboBox101;
    private javax.swing.JComboBox jComboBox102;
    private javax.swing.JComboBox jComboBox103;
    private javax.swing.JComboBox jComboBox104;
    private javax.swing.JComboBox jComboBox105;
    private javax.swing.JComboBox jComboBox106;
    private javax.swing.JComboBox jComboBox107;
    private javax.swing.JComboBox jComboBox108;
    private javax.swing.JComboBox jComboBox109;
    private javax.swing.JComboBox jComboBox11;
    private javax.swing.JComboBox jComboBox110;
    private javax.swing.JComboBox jComboBox111;
    private javax.swing.JComboBox jComboBox112;
    private javax.swing.JComboBox jComboBox113;
    private javax.swing.JComboBox jComboBox114;
    private javax.swing.JComboBox jComboBox115;
    private javax.swing.JComboBox jComboBox116;
    private javax.swing.JComboBox jComboBox117;
    private javax.swing.JComboBox jComboBox118;
    private javax.swing.JComboBox jComboBox119;
    private javax.swing.JComboBox jComboBox12;
    private javax.swing.JComboBox jComboBox120;
    private javax.swing.JComboBox jComboBox121;
    private javax.swing.JComboBox jComboBox122;
    private javax.swing.JComboBox jComboBox123;
    private javax.swing.JComboBox jComboBox124;
    private javax.swing.JComboBox jComboBox125;
    private javax.swing.JComboBox jComboBox126;
    private javax.swing.JComboBox jComboBox127;
    private javax.swing.JComboBox jComboBox128;
    private javax.swing.JComboBox jComboBox129;
    private javax.swing.JComboBox jComboBox13;
    private javax.swing.JComboBox jComboBox130;
    private javax.swing.JComboBox jComboBox131;
    private javax.swing.JComboBox jComboBox132;
    private javax.swing.JComboBox jComboBox133;
    private javax.swing.JComboBox jComboBox134;
    private javax.swing.JComboBox jComboBox135;
    private javax.swing.JComboBox jComboBox136;
    private javax.swing.JComboBox jComboBox137;
    private javax.swing.JComboBox jComboBox138;
    private javax.swing.JComboBox jComboBox139;
    private javax.swing.JComboBox jComboBox14;
    private javax.swing.JComboBox jComboBox140;
    private javax.swing.JComboBox jComboBox141;
    private javax.swing.JComboBox jComboBox142;
    private javax.swing.JComboBox jComboBox143;
    private javax.swing.JComboBox jComboBox145;
    private javax.swing.JComboBox jComboBox146;
    private javax.swing.JComboBox jComboBox147;
    private javax.swing.JComboBox jComboBox148;
    private javax.swing.JComboBox jComboBox149;
    private javax.swing.JComboBox jComboBox15;
    private javax.swing.JComboBox jComboBox150;
    private javax.swing.JComboBox jComboBox151;
    private javax.swing.JComboBox jComboBox16;
    private javax.swing.JComboBox jComboBox17;
    private javax.swing.JComboBox jComboBox18;
    private javax.swing.JComboBox jComboBox19;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox20;
    private javax.swing.JComboBox jComboBox21;
    private javax.swing.JComboBox jComboBox22;
    private javax.swing.JComboBox jComboBox23;
    private javax.swing.JComboBox jComboBox24;
    private javax.swing.JComboBox jComboBox25;
    private javax.swing.JComboBox jComboBox26;
    private javax.swing.JComboBox jComboBox27;
    private javax.swing.JComboBox jComboBox28;
    private javax.swing.JComboBox jComboBox29;
    private javax.swing.JComboBox jComboBox3;
    private javax.swing.JComboBox jComboBox30;
    private javax.swing.JComboBox jComboBox31;
    private javax.swing.JComboBox jComboBox32;
    private javax.swing.JComboBox jComboBox33;
    private javax.swing.JComboBox jComboBox34;
    private javax.swing.JComboBox jComboBox35;
    private javax.swing.JComboBox jComboBox36;
    private javax.swing.JComboBox jComboBox37;
    private javax.swing.JComboBox jComboBox38;
    private javax.swing.JComboBox jComboBox39;
    private javax.swing.JComboBox jComboBox4;
    private javax.swing.JComboBox jComboBox40;
    private javax.swing.JComboBox jComboBox41;
    private javax.swing.JComboBox jComboBox42;
    private javax.swing.JComboBox jComboBox43;
    private javax.swing.JComboBox jComboBox44;
    private javax.swing.JComboBox jComboBox45;
    private javax.swing.JComboBox jComboBox46;
    private javax.swing.JComboBox jComboBox47;
    private javax.swing.JComboBox jComboBox48;
    private javax.swing.JComboBox jComboBox49;
    private javax.swing.JComboBox jComboBox5;
    private javax.swing.JComboBox jComboBox50;
    private javax.swing.JComboBox jComboBox51;
    private javax.swing.JComboBox jComboBox52;
    private javax.swing.JComboBox jComboBox53;
    private javax.swing.JComboBox jComboBox54;
    private javax.swing.JComboBox jComboBox55;
    private javax.swing.JComboBox jComboBox56;
    private javax.swing.JComboBox jComboBox57;
    private javax.swing.JComboBox jComboBox58;
    private javax.swing.JComboBox jComboBox59;
    private javax.swing.JComboBox jComboBox6;
    private javax.swing.JComboBox jComboBox60;
    private javax.swing.JComboBox jComboBox61;
    private javax.swing.JComboBox jComboBox62;
    private javax.swing.JComboBox jComboBox63;
    private javax.swing.JComboBox jComboBox64;
    private javax.swing.JComboBox jComboBox65;
    private javax.swing.JComboBox jComboBox66;
    private javax.swing.JComboBox jComboBox67;
    private javax.swing.JComboBox jComboBox68;
    private javax.swing.JComboBox jComboBox69;
    private javax.swing.JComboBox jComboBox7;
    private javax.swing.JComboBox jComboBox70;
    private javax.swing.JComboBox jComboBox71;
    private javax.swing.JComboBox jComboBox72;
    private javax.swing.JComboBox jComboBox73;
    private javax.swing.JComboBox jComboBox74;
    private javax.swing.JComboBox jComboBox75;
    private javax.swing.JComboBox jComboBox76;
    private javax.swing.JComboBox jComboBox77;
    private javax.swing.JComboBox jComboBox78;
    private javax.swing.JComboBox jComboBox79;
    private javax.swing.JComboBox jComboBox8;
    private javax.swing.JComboBox jComboBox80;
    private javax.swing.JComboBox jComboBox81;
    private javax.swing.JComboBox jComboBox82;
    private javax.swing.JComboBox jComboBox83;
    private javax.swing.JComboBox jComboBox84;
    private javax.swing.JComboBox jComboBox85;
    private javax.swing.JComboBox jComboBox86;
    private javax.swing.JComboBox jComboBox87;
    private javax.swing.JComboBox jComboBox88;
    private javax.swing.JComboBox jComboBox89;
    private javax.swing.JComboBox jComboBox9;
    private javax.swing.JComboBox jComboBox90;
    private javax.swing.JComboBox jComboBox91;
    private javax.swing.JComboBox jComboBox92;
    private javax.swing.JComboBox jComboBox93;
    private javax.swing.JComboBox jComboBox94;
    private javax.swing.JComboBox jComboBox95;
    private javax.swing.JComboBox jComboBox96;
    private javax.swing.JComboBox jComboBox97;
    private javax.swing.JComboBox jComboBox98;
    private javax.swing.JComboBox jComboBox99;
    private javax.swing.JFileChooser jFileChooser1;
    private javax.swing.JInternalFrame jInternalFrame1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel100;
    private javax.swing.JLabel jLabel101;
    private javax.swing.JLabel jLabel102;
    private javax.swing.JLabel jLabel103;
    private javax.swing.JLabel jLabel104;
    private javax.swing.JLabel jLabel105;
    private javax.swing.JLabel jLabel106;
    private javax.swing.JLabel jLabel107;
    private javax.swing.JLabel jLabel108;
    private javax.swing.JLabel jLabel109;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel110;
    private javax.swing.JLabel jLabel111;
    private javax.swing.JLabel jLabel112;
    private javax.swing.JLabel jLabel113;
    private javax.swing.JLabel jLabel114;
    private javax.swing.JLabel jLabel115;
    private javax.swing.JLabel jLabel116;
    private javax.swing.JLabel jLabel117;
    private javax.swing.JLabel jLabel118;
    private javax.swing.JLabel jLabel119;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel120;
    private javax.swing.JLabel jLabel121;
    private javax.swing.JLabel jLabel122;
    private javax.swing.JLabel jLabel123;
    private javax.swing.JLabel jLabel124;
    private javax.swing.JLabel jLabel126;
    private javax.swing.JLabel jLabel127;
    private javax.swing.JLabel jLabel128;
    private javax.swing.JLabel jLabel129;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel130;
    private javax.swing.JLabel jLabel131;
    private javax.swing.JLabel jLabel132;
    private javax.swing.JLabel jLabel133;
    private javax.swing.JLabel jLabel134;
    private javax.swing.JLabel jLabel135;
    private javax.swing.JLabel jLabel136;
    private javax.swing.JLabel jLabel137;
    private javax.swing.JLabel jLabel138;
    private javax.swing.JLabel jLabel139;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel140;
    private javax.swing.JLabel jLabel141;
    private javax.swing.JLabel jLabel142;
    private javax.swing.JLabel jLabel143;
    private javax.swing.JLabel jLabel144;
    private javax.swing.JLabel jLabel145;
    private javax.swing.JLabel jLabel146;
    private javax.swing.JLabel jLabel147;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel150;
    private javax.swing.JLabel jLabel151;
    private javax.swing.JLabel jLabel152;
    private javax.swing.JLabel jLabel153;
    private javax.swing.JLabel jLabel154;
    private javax.swing.JLabel jLabel156;
    private javax.swing.JLabel jLabel157;
    private javax.swing.JLabel jLabel158;
    private javax.swing.JLabel jLabel159;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel160;
    private javax.swing.JLabel jLabel161;
    private javax.swing.JLabel jLabel162;
    private javax.swing.JLabel jLabel163;
    private javax.swing.JLabel jLabel164;
    private javax.swing.JLabel jLabel165;
    private javax.swing.JLabel jLabel166;
    private javax.swing.JLabel jLabel167;
    private javax.swing.JLabel jLabel168;
    private javax.swing.JLabel jLabel169;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel170;
    private javax.swing.JLabel jLabel171;
    private javax.swing.JLabel jLabel174;
    private javax.swing.JLabel jLabel175;
    private javax.swing.JLabel jLabel176;
    private javax.swing.JLabel jLabel177;
    private javax.swing.JLabel jLabel178;
    private javax.swing.JLabel jLabel179;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel180;
    private javax.swing.JLabel jLabel181;
    private javax.swing.JLabel jLabel182;
    private javax.swing.JLabel jLabel183;
    private javax.swing.JLabel jLabel184;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel78;
    private javax.swing.JLabel jLabel79;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel80;
    private javax.swing.JLabel jLabel81;
    private javax.swing.JLabel jLabel82;
    private javax.swing.JLabel jLabel83;
    private javax.swing.JLabel jLabel84;
    private javax.swing.JLabel jLabel85;
    private javax.swing.JLabel jLabel86;
    private javax.swing.JLabel jLabel87;
    private javax.swing.JLabel jLabel88;
    private javax.swing.JLabel jLabel89;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabel90;
    private javax.swing.JLabel jLabel91;
    private javax.swing.JLabel jLabel92;
    private javax.swing.JLabel jLabel93;
    private javax.swing.JLabel jLabel94;
    private javax.swing.JLabel jLabel95;
    private javax.swing.JLabel jLabel96;
    private javax.swing.JLabel jLabel97;
    private javax.swing.JLabel jLabel98;
    private javax.swing.JLabel jLabel99;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu7;
    private javax.swing.JMenu jMenu8;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem13;
    private javax.swing.JMenuItem jMenuItem16;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem20;
    private javax.swing.JMenuItem jMenuItem21;
    private javax.swing.JMenuItem jMenuItem23;
    private javax.swing.JMenuItem jMenuItem24;
    private javax.swing.JMenuItem jMenuItem25;
    private javax.swing.JMenuItem jMenuItem28;
    private javax.swing.JMenuItem jMenuItem29;
    private javax.swing.JMenuItem jMenuItem30;
    private javax.swing.JMenuItem jMenuItem31;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JPasswordField jPasswordField1;
    private javax.swing.JProgressBar jProgressBar1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane17;
    private javax.swing.JScrollPane jScrollPane18;
    private javax.swing.JScrollPane jScrollPane19;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane20;
    private javax.swing.JScrollPane jScrollPane21;
    private javax.swing.JScrollPane jScrollPane22;
    private javax.swing.JScrollPane jScrollPane23;
    private javax.swing.JScrollPane jScrollPane24;
    private javax.swing.JScrollPane jScrollPane25;
    private javax.swing.JScrollPane jScrollPane26;
    private javax.swing.JScrollPane jScrollPane27;
    private javax.swing.JScrollPane jScrollPane28;
    private javax.swing.JScrollPane jScrollPane29;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane30;
    private javax.swing.JScrollPane jScrollPane31;
    private javax.swing.JScrollPane jScrollPane33;
    private javax.swing.JScrollPane jScrollPane34;
    private javax.swing.JScrollPane jScrollPane35;
    private javax.swing.JScrollPane jScrollPane37;
    private javax.swing.JScrollPane jScrollPane38;
    private javax.swing.JScrollPane jScrollPane39;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField10;
    private javax.swing.JTextField jTextField11;
    private javax.swing.JTextField jTextField12;
    private javax.swing.JTextField jTextField13;
    private javax.swing.JTextField jTextField14;
    private javax.swing.JTextField jTextField15;
    private javax.swing.JTextField jTextField16;
    private javax.swing.JTextField jTextField17;
    private javax.swing.JTextField jTextField18;
    private javax.swing.JTextField jTextField19;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField20;
    private javax.swing.JTextField jTextField22;
    private javax.swing.JTextField jTextField23;
    private javax.swing.JTextField jTextField24;
    private javax.swing.JTextField jTextField26;
    private javax.swing.JTextField jTextField27;
    private javax.swing.JTextField jTextField28;
    private javax.swing.JTextField jTextField29;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField30;
    private javax.swing.JTextField jTextField31;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JTextField jTextField8;
    private javax.swing.JTextField jTextField9;
    private javax.swing.JTextPane jTextPane1;
    private javax.swing.JTextPane jTextPane10;
    private javax.swing.JTextPane jTextPane11;
    private javax.swing.JTextPane jTextPane12;
    private javax.swing.JTextPane jTextPane13;
    private javax.swing.JTextPane jTextPane14;
    private javax.swing.JTextPane jTextPane15;
    private javax.swing.JTextPane jTextPane16;
    private javax.swing.JTextPane jTextPane17;
    private javax.swing.JTextPane jTextPane18;
    private javax.swing.JTextPane jTextPane19;
    private javax.swing.JTextPane jTextPane2;
    private javax.swing.JTextPane jTextPane20;
    private javax.swing.JTextPane jTextPane22;
    private javax.swing.JTextPane jTextPane23;
    private javax.swing.JTextPane jTextPane24;
    private javax.swing.JTextPane jTextPane26;
    private javax.swing.JTextPane jTextPane27;
    private javax.swing.JTextPane jTextPane28;
    private javax.swing.JTextPane jTextPane4;
    private javax.swing.JTextPane jTextPane5;
    private javax.swing.JTextPane jTextPane6;
    private javax.swing.JTextPane jTextPane7;
    private javax.swing.JTextPane jTextPane8;
    private javax.swing.JTextPane jTextPane9;
    private javax.swing.JMenuItem licencia;
    private javax.swing.JMenu listaProyectos;
    private javax.swing.JMenuItem manual;
    private javax.swing.JPopupMenu menuTablaPrincipal;
    private javax.swing.JPopupMenu menuTablaTareas;
    private javax.swing.JMenuBar menuVentanaPrincipal;
    private javax.swing.JFrame presupuesto;
    private javax.swing.JRadioButtonMenuItem r1024x768;
    private javax.swing.JRadioButtonMenuItem r1280x1024;
    private javax.swing.JRadioButtonMenuItem r800x600;
    private javax.swing.JMenuItem recargarLista;
    private javax.swing.JMenuItem reportarError;
    private javax.swing.JFrame reporteErrores;
    private javax.swing.JMenuItem salirSistema;
    private javax.swing.JMenu sesion;
    private javax.swing.JMenuItem sistemaCreditos;
    private javax.swing.JFrame tareas;
    private javax.swing.JMenuItem tareasAsignadas;
    private javax.swing.JMenuItem tareasCreadas;
    private javax.swing.JFrame ventanaPrincipal;
    // End of variables declaration//GEN-END:variables
}
